Skip to content
This repository has been archived by the owner on Dec 5, 2024. It is now read-only.

Commit

Permalink
Changed AllowsInlineMediaPlayback to false for full screen playback o…
Browse files Browse the repository at this point in the history
…n iPad
  • Loading branch information
佐川晴海[YUMEMI]/Sagawa Harumi committed Jan 7, 2022
1 parent f57129c commit 972df37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/YTPlayerView.m
Original file line number Diff line number Diff line change
Expand Up @@ -905,7 +905,7 @@ - (void)setWebView:(WKWebView *)webView {

- (WKWebView *)createNewWebView {
WKWebViewConfiguration *webViewConfiguration = [[WKWebViewConfiguration alloc] init];
webViewConfiguration.allowsInlineMediaPlayback = YES;
webViewConfiguration.allowsInlineMediaPlayback = NO;
webViewConfiguration.mediaTypesRequiringUserActionForPlayback = WKAudiovisualMediaTypeNone;
WKWebView *webView = [[WKWebView alloc] initWithFrame:self.bounds
configuration:webViewConfiguration];
Expand Down

0 comments on commit 972df37

Please sign in to comment.