视图上的事件显示更改(Youtube MPMoviePlayerViewController)

发布于 2024-12-02 14:46:45 字数 186 浏览 5 评论 0原文

我想知道在单击允许在 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

2024-12-09 14:46:45

在任何情况下,您都不会收到来自 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 a MPMoviePlayerController).

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文