SoundManager2 on iPhone - Sound not playing on jQuery Load

前端 未结 1 851
臣服心动
臣服心动 2021-01-28 11:25

I\'m trying to use SoundManager2 as part of an iPhone Web App to play a sound after a form has been submitted using jQuery. The particular sound that is played is dependant on t

相关标签:
1条回答
  • 2021-01-28 11:49

    You do know iPhone Safari has sound limitations applied? Basically it will not play sound without user interacting with a page somehow (via touching screen). So forget about automatic sound being played via "onLoad" or any other event.

    With SoundManager2 and my iPhone though, I find it a bit tricky sometimes.. I'm pretty sure it plays sound (even several) automatically after I finger-click at least 1 time in my app (for example closing initial html popup ( basically))

    So check this lead at least...

    Tomasz

    Resources:

    http://buildingwebapps.blogspot.com/2012/04/state-of-html5-audio-in-mobile-safari.html

    http://blog.logicking.com/2012/03/cross-platform-sounds-for-html5-games.html

    0 讨论(0)
提交回复
热议问题