How to detect iOS leaving fullscreen video?

后端 未结 2 1095
别那么骄傲
别那么骄傲 2021-01-18 09:20

How can I detect when a video on iOS is closed? I am running videojs which launches HTML5 videos as native video players. In order to react properly, I want to get an event

2条回答
  •  清歌不尽
    2021-01-18 09:50

    Listen for the fulscreenchange event and check isFullscreen().

    
    
    
    
    
    
    

提交回复
热议问题