退出全屏 ,需要水印8

This commit is contained in:
gengxin
2025-03-11 11:15:18 +08:00
parent 127f191776
commit a5333952c9

View File

@@ -623,8 +623,18 @@ export default {
if (!this.isFullscreen) {
// 退出全屏后的逻辑(如暂停视频、更新 UI 等)
console.log('ESC 已退出全屏 handleFullscreenChange',this.isFullscreen);
this.isFullscreen = true)
this.toggleFullScreen();
if (document.exitFullscreen) {
document.exitFullscreen();
} else if (document.msExitFullscreen) {
document.msExitFullscreen();
} else if (document.mozCancelFullScreen) {
document.mozCancelFullScreen();
} else if (document.oRequestFullscreen) {
document.oCancelFullScreen();
} else if (document.webkitExitFullscreen) {
document.webkitExitFullscreen();
}
this.$emit('onFullscreen',false);//全屏
}
}