mirror of
https://github.com/scratchfoundation/scratchjr.git
synced 2024-11-25 00:28:20 -05:00
Merge pull request #515 from yueyuzhao/issue/510
iOS: disable PictureInPicture video play mode
This commit is contained in:
commit
7630a284b7
1 changed files with 1 additions and 0 deletions
|
@ -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];
|
||||
|
|
Loading…
Reference in a new issue