javascript - HTML5 video does not hide controls in fullscreen mode in Chrome -
in google chrome browser when change full screen mod standard controls showing when mouse move. enabled function show control on right click menu (only on full screen), can't disabled it. tray js functions not working. js:
$('.gp_nav_fc').click(function() { elem = $('#bcvideo')[0]; if (elem.requestfullscreen) { elem.requestfullscreen(); } else if (elem.mozrequestfullscreen) { elem.mozrequestfullscreen(); } else if (elem.webkitrequestfullscreen) { elem.webkitrequestfullscreen(); } $('.gp_buttons').attr('class', 'gp_buttons fullscreen'); elem.controls = false; $('#bcvideo')[0].removeattribute("controls"); $('#bcvideo').controls = false; }); html:
<video id="bcvideo" src="anotherhost.com/video.mp4" style="position: absolute;" poster="poster.gif"></video> i change src course long, video getting domain.
so find answer question.
in css need add next rule:
video::-webkit-media-controls { display:none !important; } more information on link: http://css-tricks.com/custom-controls-in-html5-video-full-screen/
Comments
Post a Comment