HTML5 output on iphone/ ipad/ ipod - sound?

Monkey Targets Forums/HTML5/HTML5 output on iphone/ ipad/ ipod - sound?

silentshark(Posted 2012) [#1]
Anyone had any luck in getting sound to work in html5 on the native safari browser on iphone/ ipad?


MikeHart(Posted 2012) [#2]
Nope, it is not a bug. It is a feature of the idevices.


Origaming(Posted 2012) [#3]
Does it mean that we can't get any sound from Monkey HTML5 games on any iDevices? We don't have an iDevice yet so we can't test.
We had just accepted a job to make HTML5 game and if we can't get sound, this is really bad! :(


MikeHart(Posted 2012) [#4]
From the informations I have gathered through googling, it seems that Apple has made it basically impossible to get sound for native HTML5 games on IDevices.


Difference(Posted 2012) [#5]
As far as I can tell you can get HTML5 sound on the iPad/iPod/iPhone like this:

http://www.apple.com/html5/showcase/audio/
(tested on iPod touch 4)

http://developer.apple.com/library/safari/#documentation/AudioVideo/Conceptual/Using_HTML5_Audio_Video/Device-SpecificConsiderations/Device-SpecificConsiderations.html

http://stackoverflow.com/questions/3009888/autoplay-audio-files-on-an-ipad-with-html5

It might be limited to 1 sound at a time. :-(


AdamRedwoods(Posted 2012) [#6]
i hear a user-selected full screen mode may work. anyone try this, i know it's not native to monkey and would require a mod.


silentshark(Posted 2012) [#7]
That's annoying. I suppose it's all to encourage things to be apps, not html5-apps in AppleWorld. It's all about the money, I guess.


Jimbo(Posted 2012) [#8]
What audio format is it? Very few are supported.


silentshark(Posted 2012) [#9]
I think I tried mp3 and ogg, with no joy. Sounds like it's not meant to be, tho'


Difference(Posted 2012) [#10]
This plays sounds on the iPod Touch 4: http://buzz.jaysalvat.com/demo/

Also all of these play , except ogg : http://textopia.org/androidsoundformats.html

I think the iOS HTML5 sound support currently is limited to:

One sound at a time.
No preloading.
No .ogg

I'd still like a function to play HTML5 sound on IOS HTML5 though.
The current Monkey implementation does not seem to play anything.


Jimbo(Posted 2012) [#11]
From my reading, audio can only be launched in the browser by user interaction - clicking a button. Typical Apple rubbish, making most games unusable. They obviously don't like HTML5 because it bypasses the App Store!


AndroidAndy(Posted 2012) [#12]
On the other hand a silent film won an Academy Award for Best Picture 2012, just saying... :)