tags:

views:

1066

answers:

3
+2  Q: 

HTML5 Video Volume

Hi,

i'm currently working on a HTML5 video player, i got it working fully everywhere, except on the freakin iPad. Basically, i can control everything, except the sound, i have a mute button, it works fine on Google Chrome, FF3.6 and Safari on Mac OS, but on the iPad no matter what value i put in video.volume, there is no change happening.

Anybody got it working properly?

Code:

<video src="video_url" width="608" height="476" autobuffer="autobuffer" id="html5-player" preload>
   Your browser doesn't support HTML5.
</video

var muted = false;
$j('.player-mute').click(function(){
if(muted) {
    videoPlayer.volume = 1;
    muted = false;
} else {
    videoPlayer.volume = 0;
    muted = true;
}
});
+1  A: 

If you read the iPad html5 video documentation it says that only the user of the device can start video, and change volume.

jamone
If it's triggered by a click event it should work, no? I mean it work for the video play(), i have a click event binded on my play button and i have no issue, whereas the mute button doesn't work, may be because it's a property that i modify?
Mikushi
A: 

Have you found a solution yet? I too cannot get the mute to work.

Ray
No i didn't, apparently both mute and volume are read-only on the iPad. I sent an e-mail to Apple about that, still waiting for a reply.
Mikushi
A: 

I've had the same problem. I was able to get play working by triggering a click event but volume and muted just don't do anything. I'm running this on the emulator however... are you having this problem on an actual iPad?

ad rees