I am trying to play some videos in a UIWebView
and required to get some feedback when the video playback is finished, without any user interaction. I am looking for something similar to MPMoviePlayerPlaybackDidFinishNotification
, but in UIWebView
. Appreciate if anyone can share a work around.
Asked
Active
Viewed 768 times
0

Bill the Lizard
- 398,270
- 210
- 566
- 880

Jose Cherian
- 7,207
- 3
- 36
- 39
-
have you found a solution ? because i have the same probleme. my playback start behind my webview i would try to intercepte this for set the alpha to 0 – May 25 '11 at 16:57
-
how do you play the video in you UIWebView? – Nick Weaver May 25 '11 at 20:22
-
@draiis I didnt manage to find a resonable solution to this issue. You may check the below link for more info http://stackoverflow.com/questions/4964731/notification-of-youtube-video-completion-in-iphone-app/5162638#5162638 – Jose Cherian Jun 12 '11 at 18:58
-
@Nick, Try this link http://apiblog.youtube.com/2009/02/youtube-apis-iphone-cool-mobile-apps.html – Jose Cherian Jun 12 '11 at 18:59
-
hey bros:http://stackoverflow.com/questions/8518719/how-to-receive-nsnotifications-from-uiwebview-embedded-youtube-video-playback – Sebastian Bean Feb 16 '12 at 21:00
1 Answers
1
I can't vouch for all video types but when I play a YouTube video in a UIWebView
I can capture the event when the user presses 'Done' by subscribing to a private notification type:
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(moviePlayerDidExitFullscreen:) name:@"UIMoviePlayerControllerDidExitFullscreenNotification" object:nil];
This works in iOS 4.3 and 5.0.

TPoschel
- 3,775
- 2
- 30
- 29