zarocknz / javascript-winwheel

Create spinning prize wheels on HTML canvas with Winwheel.js
http://dougtesting.net
MIT License
525 stars 362 forks source link

sound not work on IOS #75

Open ducvu91 opened 5 years ago

ducvu91 commented 5 years ago

hello, http://dougtesting.net/winwheel/examples/wheel_of_fortune i run example on IOS, sound not work. android it ok. Pls double check ! thanks.

soumyajit-int commented 4 years ago

Is there any update regarding sound on IOS?

chauanthuan commented 4 years ago

Hello everyone, any update in this issue? Sound not working in ios device, Please help me, Thanks.

SailorTurkey commented 4 years ago

Hello, why asking this here instead of checking web? This is not a bug of this great project.

It's related to how safari behaves. Check below for solutions :)

https://stackoverflow.com/questions/9811429/html5-audio-tag-on-safari-has-a-delay

zarocknz commented 4 years ago

Thanks for the link to stack overflow, hopefully the answers there can help.

bakdakonusuruz commented 3 years ago

Hello, why asking this here instead of checking web? This is not a bug of this great project.

It's related to how safari behaves. Check below for solutions :)

https://stackoverflow.com/questions/9811429/html5-audio-tag-on-safari-has-a-delay

Hello, I already check these solutions but no luck. There is no simple solution I can use right away. Did you implemented AudioContext into any of your projects without using any other third-party libraries?

Thanks.

blockmonkey commented 3 years ago

I ran into a similar issues with Safari and iOS - ended up using Howler.js https://howlerjs.com

After you import the sounds using Howler - you can then add them to the playSound Function. http://dougtesting.net/winwheel/docs/tut19_playing_sounds_and_music

Works quite well.