2

I have a problem playing youtube videos in fullscreen mode within UIWebView. By default video is inlined. When I switch to fullscreen (native player button), video player is resized to fullscreen and after that is quits playing and page gets refreshed.

This works just fine is iOS5 but not iOS6.

This is more obvious on iPhone cos player goes fullscreen mode as soon as video starts playing. As a results this videos can not be played on iPhone device using iOS6.x.

I know that Apple change its policy about youtube videos. But how does this helps me? How can I assure videos are also playing in fullscreen mode?

Borut Tomazin
  • 8,041
  • 11
  • 78
  • 91

1 Answers1

2

-(void)viewWillDisappear is now (iOS6) called if you play a video in fullscreen mode

try registering for UIMoviePlayerControllerDidEnter*(/Exit)*FullscreenNotification and modifying viewWillDisappear like UIWebView Movie Player getting dismissed iOS 6 bug

Community
  • 1
  • 1
blub
  • 1,014
  • 7
  • 18
  • This is the correct solution. Actually it's logical cos video is presented in some kind of a modalView which is pushed above webView. Thanks! – Borut Tomazin Feb 04 '13 at 13:45