iOS: disable PictureInPicture video play mode

This commit is contained in:
Yueyu 2021-09-02 21:16:45 +08:00
parent ce9200b2f1
commit 076b6f4f60

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];