youtube-ios-player-helper
youtube-ios-player-helper copied to clipboard
iPad will not play full screen
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?
I can play it in full screen. But it's not in the center. Instead it is aligned top.
@bagusflyer how do you play it in full screen on iPad ? by setting playsinline ?
Anyone of you succeeded in playing iPad video in fullscreen ? Im seeking for solution .
Let me know if anyone of you successfully played the video in full screen on iPad.
Same issue here
I am using this in iOS 10 and it is working fine:
playerView.webView.allowsInlineMediaPlayback = false
Not showing allowsInlineMediaPlayback this property in Swift 5 iOS 13. Can you please help me on this?
@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 That did it! 🙏