如何捕获视频的事件ExitFullScreen? 退出标签视频的全屏时,我需要重新绘制页面。
答案 0 :(得分:6)
收听fullscreenchange
事件:
document.addEventListener("fullscreenchange", function () {
console.log(document.fullscreen);
}, false);
document.addEventListener("mozfullscreenchange", function () {
console.log(document.mozFullScreen);
}, false);
document.addEventListener("webkitfullscreenchange", function () {
console.log(document.webkitIsFullScreen);
}, false);