UIWebView播放器是MPMoviePlayerController实例,以及如何获取对该实例的引用? [英] is that UIWebView player a MPMoviePlayerController instance, and how to get a reference to that instance?

查看:71
本文介绍了UIWebView播放器是MPMoviePlayerController实例,以及如何获取对该实例的引用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要在UIWebview中播放youtube视频,并在用户单击DOne按钮并且视频播放完毕时处理该事件.我想到了可以处理从UIWebview的媒体播放器发送的事件的解决方案.

I need to play a youtube video in UIWebview and handle the event when user click the DOne button and when the video finish playing. I think of the solution that will handle the event that sent from UIWebview's media player.

我的问题是: 1. UIWebview的媒体播放器是MPMoviewPlayerController吗? 2.如何引用该实例并处理它发出的事件(例如:暂停,停止,完成,播放完毕...)

My question is: 1. is that the UIWebview's media player a MPMoviewPlayerController? 2. How do i refer to that instance and handle the event it sent out (such as: pause, stop, done, finish playing...)

谢谢.

推荐答案

1. UIWebview的媒体播放器是MPMoviewPlayerController吗?

1. is that the UIWebview's media player a MPMoviewPlayerController?

否.

2.我如何引用该实例并处理它发出的事件(例如:暂停,停止,完成,播放完毕...)

2. How do i refer to that instance and handle the event it sent out (such as: pause, stop, done, finish playing...)

如我对一个非常类似的问题的回答中所述: 如何从UIWebView嵌入式YouTube接收NSNotifications视频播放

As drafted in my answer to a very similar question: How to receive NSNotifications from UIWebView embedded YouTube video playback

这篇关于UIWebView播放器是MPMoviePlayerController实例,以及如何获取对该实例的引用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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