In my project, I have a WebBrowser
control with a video element and I want to insert a button that when I press it, the video element will switch to fullscreen mode.
I tried this code:
var video = document.getElementById('video');
if (video.requestFullscreen) {
video.requestFullscreen();
} else if (video.mozRequestFullScreen) {
video.mozRequestFullScreen();
} else if (video.webkitRequestFullscreen) {
video.webkitRequestFullscreen();
}
And it won't work. I read in some article that it's not possible in IE browser to make video element enter fullscreen. Is there any fix for this? Did I do something wrong?