Skip to content
This repository has been archived by the owner on Dec 3, 2021. It is now read-only.

Commit

Permalink
Merge pull request alinz#90 from stereodenis/patch-1
Browse files Browse the repository at this point in the history
mediaPlaybackRequiresUserAction property
  • Loading branch information
chansuke authored Sep 28, 2018
2 parents 6cd521f + f1a5514 commit 4cdb36e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions ios/RCTWebViewBridge.m
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ - (instancetype)initWithFrame:(CGRect)frame
_contentInset = UIEdgeInsetsZero;
_webView = [[UIWebView alloc] initWithFrame:self.bounds];
_webView.delegate = self;
_webView.mediaPlaybackRequiresUserAction = NO;
[self addSubview:_webView];
}
return self;
Expand Down
1 change: 1 addition & 0 deletions ios/RCTWebViewBridgeManager.m
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ - (UIView *)view
RCT_EXPORT_VIEW_PROPERTY(onLoadingError, RCTDirectEventBlock)
RCT_EXPORT_VIEW_PROPERTY(onShouldStartLoadWithRequest, RCTDirectEventBlock)
RCT_REMAP_VIEW_PROPERTY(allowsInlineMediaPlayback, _webView.allowsInlineMediaPlayback, BOOL)
RCT_REMAP_VIEW_PROPERTY(mediaPlaybackRequiresUserAction, _webView.mediaPlaybackRequiresUserAction, BOOL)
RCT_EXPORT_VIEW_PROPERTY(onBridgeMessage, RCTDirectEventBlock)

- (NSDictionary<NSString *, id> *)constantsToExport
Expand Down

0 comments on commit 4cdb36e

Please sign in to comment.