ciccilleju opened a new issue #221:
URL: https://github.com/apache/cordova-plugin-media-capture/issues/221
I’m using Capacitor 3 and Ionic 5 angular, physical device Samsung Galaxy
s20 and Android 11
I’ve used the media capture plugin for recording a video which is saved in
my gallery.
I get a result like this:
[MediaFile]
0: MediaFile
end: 0
fullPath: "file:///storage/emulated/0/DCIM/Camera/20210522_185343.mp4"
lastModified: null
lastModifiedDate: 1621702425000
localURL: "cdvfile://localhost/sdcard/DCIM/Camera/20210522_185343.mp4"
name: "20210522_185343.mp4"
size: 13596835
start: 0
type: "video/mp4"
__proto__: File
length: 1
What should i do if i want to access that video and send, for example,
uploading it to my server?
I’ve tried this:
public async addNewToGallery() {
this.mediaCapture.captureVideo().then(
(data: MediaFile[]) => {
this.videos.unshift({
filepath: data[0].fullPath,
webviewPath: data[0].fullPath
});
this.videoUrl = Capacitor.convertFileSrc(data[0].fullPath);
},
(err: CaptureError) => console.error(err)
);
}
but it dosnt let me access the file, which now have this "address", after
the conversion:
http://capacitor_file/storage/emulated/0/DCIM/Camera/20210522_185343.mp4
but seems like i can’t access the file.
it depends on me or is an android 11 problem?
thanks
## Checklist
<!-- Please check the boxes by putting an x in the [ ] like so: [x] -->
- [x ] I searched for existing GitHub issues
- [x ] I updated all Cordova tooling to most recent version
- [ x] I included all the necessary information above
--
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:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]