CreateJS / SoundJS

A Javascript library for working with Audio. It provides a consistent API for loading and playing audio on different browsers and devices. Currently supports WebAudio, HTML5 Audio, Cordova / PhoneGap, and a Flash fallback.
http://createjs.com/
MIT License
4.44k stars 835 forks source link

sound bug when playing in ipad #295

Open s-senguttuvan opened 6 years ago

s-senguttuvan commented 6 years ago

hi, am using soundjs for so long. 2day i found 1 issue on ipad.

first i open link in ipad sound plays fine when clicking button after i open new tab and open the same link again and sound plays when clicking button.

now if i go to 1 tab and click button to test sound, that time sound not working.

not only my code i tested https://createjs.com/getting-started/soundjs not working.

help me!!

note:

lannymcnie commented 6 years ago

If you are tab-switching, there is a good chance the audio context is getting suspended. If you debug it, you can look at createjs.Sound.activePlugin.context.state to see what the WebAudio will currently allow.

s-senguttuvan commented 6 years ago

hi, i dont know what it does internally, the problem is only in ipad (desktop working fine), open soundjs projects (same project or different) one by one,

first i load project x, sounds working well

i try to open same project x on new tab, sounds working well.

now i switch to old tab, sounds playing internally, using console.log can find sound starts playing,sound complete everything.

but the problem is no sound is coming .

help me regarding that.

thanks

JonDevoS commented 6 years ago

Hi i have the same problem on android google chrome v67 and v69 dev seems like sound is playing createjs.Sound.activePlugin.context.state = "running"; but no sound is coming then if sound stop and again run he playing good again

thx