I've an html5 video player with my own video. I'd like that when I click on a button, or an image (anything), my player show() and enlarge fullscreen like when I click on the control button.
I've tried this and other common stuff :
$(function () {
$("h1").click(function () {
$("#video-test").requestFullscreen();
$("#video-test").msRequestFullscreen();
$("#video-test").mozRequestFullscreen();
$("#video-test").webkitRequestFullscreen();
$("#video-test").addClass('fullscreen').html("");
$("i").addClass('fullscreen').html("");
});
});
But it doesn't return me anything. "$(....).requestFullscreen() is not a function"
Any idea ?