HTML5 Video Volume
Posted
by Mikushi
on Stack Overflow
See other posts from Stack Overflow
or by Mikushi
Published on 2010-04-08T18:44:30Z
Indexed on
2010/04/08
19:53 UTC
Read the original article
Hit count: 543
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;
}
});
© Stack Overflow or respective owner