I have javascript that is html5 & lt; Audio & gt; Runs audio in the browser using
tag. This works fine in the iPhone browser, but not in Android. (Testing using Android's desire with Android 2.1). Why do anyone know?
My code:
Function play HTML5 (Sound, SoundVii) {// sound = url to m4a Audio file // SonicCV = div in which the audio player should go Audio = document.createElement ('audio'); Audio src = sound; Audio.controls = "control"; If (current bull! = Null) {soundcv.replaceChild (audio, current sound); } Other {soundcv.appendChild (audio); } Current sound = audio; }
Anyway, I'm also trying to enlarge the audio button shown in the iPhone (the default is a very small one), so far no luck - it will be grateful for it. Any thoughts! The latest Android browser in FroYo does not yet support HTML5 Audio Elements, it is not a bug, Rather, there is a facility that has not been implemented yet. It can come in gingerbread.
Update: Gingerbread Browser has an audio element.
Comments
Post a Comment