I embedded a video in my HTML code
<video width="100%" class="posted_vid">
<source src="uploaded_videos/<?php echo $Video; ?>">
</video>
<div class="video_controls">
<input type="range" id="font-1-size" value="0" class="video_range" min="0"><br>
<img src="img/playicon.png" class="play_button">
<img src="img/pauseicon.png" class="pause_button">
<img src="img/volumeicon.png" class="volume_button">
<input type="range" min="0" max="1" step="0.1" class="volume">
<span class="cur_time current_min">0:</span><span class="cur_time current_seconds">00</span>
<span class="duration">0:00</span>
<img title="Fullscreen" src="img/fullscreen.png" class="fullscreen_vid">
</div>
$("body").on('click', '.fullscreen_vid', function(event) {
var vid = $(this).parent().siblings('.posted_vid')[0];
if (vid.requestFullscreen) {
vid.requestFullscreen();
} else if (vid.mozRequestFullScreen) {
vid.mozRequestFullScreen();
} else if (vid.webkitRequestFullscreen) {
vid.webkitRequestFullscreen();
}
});
When the video goes fullscreen, my custom controllers are hidden and default HTML controllers appear. How can I prevent this from happening?