Search code examples
iphoneioshtmlsoundmanager2

SoundManager2 + iPhone - not loading sound


I am using SoundManager2 to play MP3 file on a HTML5 page. It works great on Desktop Safari, however it doesn't work on the iPhone. I run a debug console and I see that it doesn't load the file, it tries to load the file but in the network console the status of the file stays on "Pending". Here is how I create the sound:

obj = soundManager.createSound({
                        id: path,
                        url: BOOK_PATH +  path,
                        useHTML5Audio: true,
                        preferFlash: false,
                        onload: function () {
                            //do stuff
                        }
                    });

Attached is a screenshot of the console. Stays on Pending... enter image description here

Thanks for any help.


Solution

  • Check @Tomasz Nazar's answer soundmanager2-on-iphone-sound-not-playing-on-jquery-load and also check Resources. Hope helpful