视图上的事件显示更改(Youtube MPMoviePlayerViewController)
我想知道在单击允许在 iOS 中播放视频的 UIWebView 之后 YouTube MPMoviePlayerViewController 何时出现(以编程方式),以获取并控制该视图。
因为我想从播放器获取信息,例如当前播放时间、加载时间……就像在常规 MPMoviePlayerViewController 中一样。
谢谢
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
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在任何情况下,您都不会收到来自 WebView 嵌入式播放器的任何通知。
更新:这并不完全正确。没有记录的通知。但是,
UIWebView
嵌入式电影播放器(实际上不是MPMoviePlayerController
)使用了一些通知。请参阅我的答案 如何接收 NSNotifications来自UIWebView嵌入的Youtube视频播放
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 aMPMoviePlayerController
).See my answer on How to receive NSNotifications from UIWebView embedded Youtube video playback