Detect when a webview video becomes fullscreen on ios8

后端 未结 5 1794
生来不讨喜
生来不讨喜 2020-12-05 11:48

I have an app where users can open videos from UIWebview, including Youtube ones. In iOS7, I was able to get a notification when it started playing, or when it became full s

5条回答
  •  粉色の甜心
    2020-12-05 12:06

    For swift:

    NotificationCenter.default.addObserver(self, selector: #selector(xxx), name: NSNotification.Name.MPMoviePlayerDidExitFullscreen, object: nil)

提交回复
热议问题