Merge pull request #515 from yueyuzhao/issue/510

iOS: disable PictureInPicture video play mode
This commit is contained in:
chrisgarrity 2021-09-03 10:18:27 -04:00 committed by GitHub
commit 7630a284b7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -50,6 +50,7 @@ NSDate *startDate;
WKWebViewConfiguration *config = [[WKWebViewConfiguration alloc] init];
config.allowsInlineMediaPlayback = true;
config.allowsAirPlayForMediaPlayback = true;
config.allowsPictureInPictureMediaPlayback = false;
[config.preferences setValue:@YES forKey:@"allowFileAccessFromFileURLs"];
WKUserContentController *controller = [[WKUserContentController alloc] init];