You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by GitBox <gi...@apache.org> on 2021/04/26 17:11:29 UTC

[GitHub] [cordova-plugin-media-capture] mirko77 commented on issue #210: Add the ability to specify where the capture should be saved

mirko77 commented on issue #210:
URL: https://github.com/apache/cordova-plugin-media-capture/issues/210#issuecomment-827006113


   @breautek @chriskhongqarma 
   
   when recording a video with
   
   ```
   window.navigator.device.capture.captureVideo(_onCaptureVideoSuccess, _onCaptureVideoError, options);
   ```
   
   on Android < 11, I get the file path in the callback like so:
   `fullPath: "file:///storage/emulated/0/DCIM/Camera/VID_20210426_181817.mp4"` and I can correctly access it.
   
   on Android 11, I get:
   `fullPath: "file:///data/user/0/{app_id}/cache/Capture.avi"` 
   But if I navigate there with a root explorer, there is not any `Capture.avi` file, and trying to access it via code will give me an error 1 (NOT FOUND), of course.
   
   I am using the flag `android:requestLegacyExternalStorage="true"`
   
   Am I missing something? Any suggestions?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org