jerry Posted October 23, 2015 Share Posted October 23, 2015 My game works fine on all brower but IOS. In safari, it stucked in loading page. I don't have a mac, so i can't check the log.I googled and found safari seems not supporting OGG audio, i think this might be the thing.How can i load audio for all platforms? Link to comment Share on other sites More sharing options...
Shortstuff81000 Posted October 26, 2015 Share Posted October 26, 2015 Why not try converting them to mp3's? http://media.io/ Link to comment Share on other sites More sharing options...
jdnichollsc Posted October 28, 2015 Share Posted October 28, 2015 this.game.load.audio('rain', ['audio/rain.ogg', 'audio/rain.mp3']); Link to comment Share on other sites More sharing options...
uyerdna Posted October 28, 2015 Share Posted October 28, 2015 I had similar problem and someone did give me an answer though I haven't had time to confirm whether it works or nothttp://www.html5gamedevs.com/topic/16356-audio-on-safari/#entry92409 Basically, you'll need M4A extension for iOS and you must not play any audio before user interacting with your html5 contentPlease give it a try and let me know if it works! Link to comment Share on other sites More sharing options...
Recommended Posts