jsmpeg icon indicating copy to clipboard operation
jsmpeg copied to clipboard

Can jsmpeg be played in full screen?

Open webrtcccccc opened this issue 5 years ago • 3 comments

Can jsmpeg be played in full screen? Like the html5 video tag, have an full screen button.

webrtcccccc avatar Jul 16 '20 04:07 webrtcccccc

You can make the canvas in fullscreen like this:


var can = document.getElementById("my-canvas");

can.style.width = window.innerWidth + "px";
can.style.height = window.innerHeight + "px";

It is not an issue of jsmpeg, just you need to learn more about html.

max246 avatar Oct 04 '20 19:10 max246

You can also try like this:

var element = document.getElementById("player-canvas");

element.requestFullscreen();

bestHAI avatar Aug 26 '21 03:08 bestHAI

You can also try like this:

var element = document.getElementById("player-canvas");

element.requestFullscreen();

nice job, thx

TY-LIU avatar Jul 29 '22 01:07 TY-LIU

Thanks

webrtcccccc avatar Feb 23 '23 05:02 webrtcccccc