diff --git a/ios/Discourse/Info.plist b/ios/Discourse/Info.plist index 7b7a260c..2f122bb5 100644 --- a/ios/Discourse/Info.plist +++ b/ios/Discourse/Info.plist @@ -83,11 +83,11 @@ NSCameraUsageDescription - Allows the app to upload images from your camera into a Discourse post. + Allows the app to use the camera for video calls on your Discourse sites, and to upload images from your camera into a Discourse post. NSLocationWhenInUseUsageDescription NSMicrophoneUsageDescription - Allows the app to upload audio and video into a Discourse post. + Allows the app to use the microphone for voice and video calls on your Discourse sites, and to upload audio and video into a Discourse post. NSPhotoLibraryUsageDescription Allows the app to upload images from your library into a Discourse post. NSUserActivityTypes @@ -105,6 +105,7 @@ UIBackgroundModes + audio fetch remote-notification diff --git a/js/screens/WebViewScreenComponents/WebViewComponent.js b/js/screens/WebViewScreenComponents/WebViewComponent.js index e957fe57..a561b7b8 100644 --- a/js/screens/WebViewScreenComponents/WebViewComponent.js +++ b/js/screens/WebViewScreenComponents/WebViewComponent.js @@ -194,6 +194,10 @@ class WebViewComponent extends React.Component { applicationNameForUserAgent={this.state.userAgentSuffix} allowsBackForwardNavigationGestures={true} allowsInlineMediaPlayback={true} + allowsPictureInPictureMediaPlayback={true} + allowsAirPlayForMediaPlayback={true} + mediaPlaybackRequiresUserAction={false} + mediaCapturePermissionGrantType={'grantIfSameHostElsePrompt'} allowsFullscreenVideo={true} allowsLinkPreview={true} hideKeyboardAccessoryView={!Platform.isPad}