cordova-plugin-video-editor icon indicating copy to clipboard operation
cordova-plugin-video-editor copied to clipboard

Android work profile java.io.FileNotFoundException: file:///storage/emulated/0/DCIM/Camera/VID_20190213_090459.mp4

Open ghost opened this issue 6 years ago • 5 comments

Dear experts, the plugin fails when running the app inside a work profile https://developers.google.com/android/work/requirements/work-profile.

java.io.FileNotFoundException: file:///storage/emulated/0/DCIM/Camera/VID_20190213_090459.mp4 -> /storage/emulated/0/DCIM/Camera/VID_20190213_090459.mp4

Both Storage and Camera permissions are enabled.

Outside work profile it works fine.

The video can be accessed in Photos or Gallery app running outside the work profile.

We also use cordova-plugin-camera inside the same work profile app and it works fine. Those photos can also be accessed in Photos or Gallery app running outside the work profile. We can process the photos with cordova-plugin-file and window.resolveLocalFileSystemURL.

ghost avatar Feb 13 '19 09:02 ghost

I have the same Issue

Juanperezc avatar Feb 13 '19 17:02 Juanperezc

I have the same Issue

rehiy avatar May 07 '19 08:05 rehiy

Has this issue been resolved? I also met "java.io.FileNotFoundException: /storage/emulated/0/Movies/APP/20191122120612.mp4: open failed: EACCES (Permission denied)"

yangshuyi avatar Nov 22 '19 04:11 yangshuyi

I debugged android code and found someting wrong with the option: saveToLibrary == true. which caused the permission exception I made a work around solution by turning the option to false

yangshuyi avatar Nov 22 '19 07:11 yangshuyi

This was not happening to me initially but for some reason it started happening a few days ago. Like with @yangshuyi, setting saveToLibrary: false fixes the issue, but this is not ideal as I actually need it.

alexander-soare avatar Nov 28 '19 10:11 alexander-soare