is that UIWebView player a MPMoviePlayerController instance, and how to get a reference to that instance?

断了今生、忘了曾经 提交于 2019-12-25 03:22:25

问题


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.

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

Thanks.


回答1:


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

No.

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

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



来源:https://stackoverflow.com/questions/9782572/is-that-uiwebview-player-a-mpmovieplayercontroller-instance-and-how-to-get-a-re

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