Detect video start playing in WKWebView

Deadly 提交于 2019-12-06 07:06:56

问题


I'm using WKWebView for loading an youtube page. I need to detect the video starts playing in the webview in inline mode and in the full screen mode. I tried MPMoviePlayerController Notifiers but they are not calling. But the same is working in UIWebView. So my question is,

  1. Is there any difference in the video playing mechanism used in UIWebView and WKWebView ?
  2. Why MPMoviePlayerController Notifiers are not calling in WKWebView ?
  3. Is there any method to detect the video play in WKWebView ?
  4. Or is there any method to detect whether the user has tapped the video play button ?

来源:https://stackoverflow.com/questions/31469521/detect-video-start-playing-in-wkwebview

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!