Browse Source

Update RNCWebViewModule.java (#509)

In Devices moto e5 play and Samsung Galaxy Note 9 Video Capture via camera return data as null.
MAHAVIR VATALIYA 4 years ago
parent
commit
39e5373d3e

+ 2
- 2
android/src/main/java/com/reactnativecommunity/webview/RNCWebViewModule.java View File

@@ -244,8 +244,8 @@ public class RNCWebViewModule extends ReactContextBaseJavaModule implements Acti
244 244
     Intent intent = new Intent(MediaStore.ACTION_VIDEO_CAPTURE);
245 245
     // @todo from experience, for Videos we get the data onActivityResult
246 246
     // so there's no need to store the Uri
247
-    Uri outputVideoUri = getOutputUri(MediaStore.ACTION_VIDEO_CAPTURE);
248
-    intent.putExtra(MediaStore.EXTRA_OUTPUT, outputVideoUri);
247
+    outputFileUri = getOutputUri(MediaStore.ACTION_VIDEO_CAPTURE);
248
+    intent.putExtra(MediaStore.EXTRA_OUTPUT, outputFileUri);
249 249
     return intent;
250 250
   }
251 251