jbavari / cordova-plugin-video-editor

A cordova plugin to edit videos.
Other
289 stars 235 forks source link

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

Open ghost opened 5 years ago

ghost commented 5 years ago

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.

Juanperezc commented 5 years ago

I have the same Issue

rehiy commented 5 years ago

I have the same Issue

yangshuyi commented 4 years ago

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

yangshuyi commented 4 years ago

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

alexander-soare commented 4 years ago

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.