Skip to content

Commit

Permalink
fixed playing on iOS until this pull request is merged: youtube#452
Browse files Browse the repository at this point in the history
  • Loading branch information
andriypohorilko committed Jun 4, 2022
1 parent 778d801 commit e49926e
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 @@ -943,7 +943,7 @@ - (void)setWebView:(WKWebView *)webView {
- (WKWebView *)createNewWebView {
WKWebViewConfiguration *webViewConfiguration = [[WKWebViewConfiguration alloc] init];
#if TARGET_OS_IOS
webViewConfiguration.allowsInlineMediaPlayback = YES;
webViewConfiguration.allowsInlineMediaPlayback = NO;
#endif
webViewConfiguration.mediaTypesRequiringUserActionForPlayback = WKAudiovisualMediaTypeNone;
WKWebView *webView = [[WKWebView alloc] initWithFrame:self.bounds
Expand Down

0 comments on commit e49926e

Please sign in to comment.