How to listen to the full screen event of exiting video

as shown in the title, please have your opinion. It"s been a night.

Jul.22,2021

a method found by https://www.jianshu.com/p/f94.


iphone7 plus does not work on


the link mentioned by the landlord seems to need to log in and reward. But I follow the clue [ webkitfullscreenchange ]. Perfect part of the code is posted here for later users to easily view it.

      document.addEventListener('webkitfullscreenchange', () => {
        const isFullScreen = document.fullScreen || document.mozFullScreen || document.webkitIsFullScreen
        if (isFullScreen) {
          //  
          console.log('')
        } else {
          //  
          console.log('')
        }
      })

reference link: https://blog.csdn.net/zqian19.

Menu