视图上的事件显示更改(Youtube MPMoviePlayerViewController) [英] Event on view displayed change (Youtube MPMoviePlayerViewController)

查看:88
本文介绍了视图上的事件显示更改(Youtube MPMoviePlayerViewController)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道YouTube MPMoviePlayerViewController在点击允许在iOS上播放视频的UIWebView之后(以编程方式)出现,以获得并控制此视图。

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.

因为我想从播放器获取信息,比如当前的播放时间,加载时间......就像常规的MPMoviePlayerViewController一样。

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

谢谢

推荐答案

在任何情况下,您都不会收到来自WebView嵌入式播放器的任何通知。

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

更新:这不完全正确。没有记录的通知。但是, UIWebView 嵌入式电影播放器​​(实际上不是 MPMoviePlayerController )会使用通知。

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).

请参阅如何从UIWebView嵌入式Youtube视频播放中接收NSNotifications

这篇关于视图上的事件显示更改(Youtube MPMoviePlayerViewController)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆