youtube-ios-player-helper icon indicating copy to clipboard operation
youtube-ios-player-helper copied to clipboard

iPad will not play full screen

Open mselevan opened this issue 9 years ago • 9 comments

I cannot get the iPad to play full screen. Even tried adding the player view to my main window view and have its frame equal the size of the entire screen and still doesnt work. works perfectly fine on iPhone. Any thoughts?

mselevan avatar May 20 '15 18:05 mselevan

I can play it in full screen. But it's not in the center. Instead it is aligned top.

bagusflyer avatar Jul 10 '15 03:07 bagusflyer

@bagusflyer how do you play it in full screen on iPad ? by setting playsinline ?

MiaShopgal avatar Jul 27 '15 04:07 MiaShopgal

Anyone of you succeeded in playing iPad video in fullscreen ? Im seeking for solution .

RD1991 avatar Feb 08 '16 07:02 RD1991

Let me know if anyone of you successfully played the video in full screen on iPad.

ChaitanyaKAfour avatar Feb 16 '16 05:02 ChaitanyaKAfour

Same issue here

jgrana avatar Mar 18 '16 22:03 jgrana

I am using this in iOS 10 and it is working fine:

playerView.webView.allowsInlineMediaPlayback = false

billionssg avatar Nov 23 '16 04:11 billionssg

Not showing allowsInlineMediaPlayback this property in Swift 5 iOS 13. Can you please help me on this?

YogeshPateliOS avatar May 17 '20 07:05 YogeshPateliOS

@YogeshPateliOS I'm in the exact situation as you, it seems that the webview now defines this configuration on initialization. I was able to solve this by editing line 895 of YTPlayerView.m (- (WKWebView *)createNewWebView) from: webViewConfiguration.allowsInlineMediaPlayback = YES; to: webViewConfiguration.allowsInlineMediaPlayback = NO;

After this I was able to view the videos in fullscreen, on the iPad.

Samuel-IH avatar Jul 13 '20 19:07 Samuel-IH

@Samuel-IH That did it! 🙏

zackcmartin avatar May 18 '22 15:05 zackcmartin