Closed webrtcccccc closed 1 year ago
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.
You can also try like this:
var element = document.getElementById("player-canvas");
element.requestFullscreen();
You can also try like this:
var element = document.getElementById("player-canvas"); element.requestFullscreen();
nice job, thx
Thanks
Not supported on mobile,even try webkitRequestFullScreen,cannot work
Can jsmpeg be played in full screen? Like the html5 video tag, have an full screen button.