Closed jedgarf closed 5 months ago
Due to the browser security mechanism, there must be interaction on the page (for example, the user has clicked on the page) before triggering the window to go full screen.
var art = new Artplayer({
container: '.artplayer-app',
url: '/assets/sample/video.mp4',
});
art.on('ready', () => {
art.fullscreen = true;
// art.fullscreenWeb = true;
})
thank you
how to auto full-screen when the video is ready