have a problem with fullscreen in video tag
my problem is when the video is paused and i want to press play . the play on the screen is work, but the play in the bar of the player doesn't meaning is not respond . how can i fix it ?
(My main goal is to go to fullscreen when user press on the play on the player so if someone have another suggestion insted of my script happy to hear)
- $("#my_video").on("click", function(){
- if (this.paused) {
-
- this.play();
-
- // go full-screen
- if (this.requestFullscreen) {
- this.requestFullscreen();
- } else if (this.webkitRequestFullscreen) {
- this.webkitRequestFullscreen();
- } else if (this.mozRequestFullScreen) {
- this.mozRequestFullScreen();
- } else if (this.msRequestFullscreen) {
- this.msRequestFullscreen();
- }
-
- }
- });