0

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.

Till
  • 27,559
  • 13
  • 88
  • 122
jAckOdE
  • 2,402
  • 8
  • 37
  • 67

1 Answers1

4

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

Community
  • 1
  • 1
Till
  • 27,559
  • 13
  • 88
  • 122