Open hung91 opened 6 months ago
On a Pixel 6a Android 13: {"code":0,"message":"Error: no mediaFile created from content://com.google.android.apps.recorder.fileprovider/recording/xxx.m4a"}
On Samsung devices (atleast my devices) it does work
Same Issue in xiaomi Android 14 {code: 0, message: 'Error: no mediaFile created from content://com.and…%A5%20%E4%B8%8B%E5%8D%883%E7%82%B952%E5%88%86.m4a'}
Hello Developers
i receive MediaFiles from this code this.mediaCapture.captureVideo(options).then((res: any) => { let capturedFile = res; console.log(capturedFile) });
mediaFile Receive succesfully but how i convert to blob File for uploading to server or any other method for uploading video to server
Thanks Aman Tyagi
Note:- MediaFiles[] (PFA)
Bug Report
Sry for open a new Bug Report. Maybe there is already one for this topic. On some device like the Xiaomi or google pixel you cant access to the media file, in this case i try to record audio and getting that file. For example on the Xiaomi this is the fullPath i get file:///storage/emulated/0/Android/data/com.android.soundrecorder/files/xxx.acc
Problem
What is expected to happen?
Get fileEntry
What does actually happen?
Error code 1
Information
Using latest cordova-plugin-file and cordova plugin-media-capture
Command or Code
window.requestFileSystem(LocalFileSystem.PERSISTENT, 0, function(fs) { fs.root.getFile("Android/data/com.android.soundrecorder/files/xxx.acc"),
}); Throws error code 1
Environment, Platform, Device
android 12.0.0
Version information
Checklist