cordova-plugin-video-editor
cordova-plugin-video-editor copied to clipboard
Android work profile java.io.FileNotFoundException: file:///storage/emulated/0/DCIM/Camera/VID_20190213_090459.mp4
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.
I have the same Issue
I have the same Issue
Has this issue been resolved? I also met "java.io.FileNotFoundException: /storage/emulated/0/Movies/APP/20191122120612.mp4: open failed: EACCES (Permission denied)"
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
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.