Event on view displayed change (Youtube MPMoviePlayerViewController)

半世苍凉 提交于 2019-12-19 09:26:27

问题


I would like to know when the YouTube MPMoviePlayerViewController appear (programmatically) after have clicked on the UIWebView which permit to play the video in iOS, to get and to have control on this view.

Because I want to get information from the player like the current playback time, loading time... like in a regular MPMoviePlayerViewController.

Thanks


回答1:


You will, under no circumstances receive any notifications from the WebView embedded player.

Update: This is not entirely true. There are no documented notifications. However, there are notifications used by the UIWebView embedded movie player (which actually is NOT a MPMoviePlayerController).

See my answer on How to receive NSNotifications from UIWebView embedded Youtube video playback



来源:https://stackoverflow.com/questions/7288375/event-on-view-displayed-change-youtube-mpmovieplayerviewcontroller

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