7

I'm playing a YouTube video using a UIWebView, like so:

self.webView.mediaPlaybackRequiresUserAction = NO;
self.webView.allowsInlineMediaPlayback = NO;
[self.webView loadHTMLString:videoEmbedCode baseURL:nil];

I want to force the video to play in full screen without the user tapping the button at the bottom right. This works fine on an iPhone (tap the player to play and it automatically enters full screen), but doesn't work on an iPad (the normal inline player is shown).

I assumed that setting allowsInlineMediaPlayback to NO would do the trick, but apparently not.

Is there a way to force HTML5 videos to play in full screen on an iPad?

Nathan
  • 6,772
  • 11
  • 38
  • 55

1 Answers1

-3

If you are trying to play a youtube video in fullscreen directly, then Use a webview of size fullScreen and then handle its rotation accordingly and change the player size of Rotation too. If you need more help then i can help you with the code too for how to change the player size on rotation too.

Bhupendra
  • 2,525
  • 18
  • 20
  • 1
    That's just a big inline player, not full screen. Full screen hides the status bar, activates different controls, has different animations, etc. – Nathan Jan 25 '13 at 19:35
  • yeah, some months ago i faced the same problem and i have to use this big web-View to load videos as in ipad it was not possible to do so, But there are some free projects available on GitHub which provides very similar player to IOS native player and you can use that too. – Bhupendra Jan 25 '13 at 19:41