Skip to content

TypeError: 'undefined' is not a function #3

@jon-moreira

Description

@jon-moreira

I have this error undefined is not a function when using Audia in iPad and iPhone.

Works good in chrome and others browsers...

[code]
this.playCorrectSound = function (){
var correctSound = new Audia();
correctSound.volume = 30;
correctSound.src = "assets/Uploads/audio/correct.mp3";
correctSound.play();
}
[/code]

if print correctSound before call play, have this

Object
_currentTime: 0
_duration: 0
_gain: null
_id: 1
_muted: false
_onendedTimeout: null
_playing: false
_source: null
_startTime: null
_volume: 1
src: "assets/Uploads/audio/correct.mp3"
volume: 30
proto: —

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions