Skip to content

Commit

Permalink
modified to enable allowsInlineMediaPlayback for wkwebview.
Browse files Browse the repository at this point in the history
  • Loading branch information
KojiNakamaru committed Aug 27, 2018
1 parent 24333ef commit 7568156
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions plugins/iOS/WebView.mm
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ - (id)initWithGameObjectName:(const char *)gameObjectName_ transparent:(BOOL)tra
WKUserContentController *controller = [[WKUserContentController alloc] init];
[controller addScriptMessageHandler:self name:@"unityControl"];
configuration.userContentController = controller;
configuration.allowsInlineMediaPlayback = true;
webView = [[WKWebView alloc] initWithFrame:view.frame configuration:configuration];
webView.UIDelegate = self;
webView.navigationDelegate = self;
Expand Down

0 comments on commit 7568156

Please sign in to comment.