apache / cordova-plugin-media-capture

Apache Cordova Media Capture Plugin
https://cordova.apache.org/
Apache License 2.0
306 stars 489 forks source link

i am using Media-Capture plugin to record video and upload to server, video recording is successfully working and receive MediaFiles[], but how i convert to blob file for uploading video to server, i tried many solution but none of working for me #294

Closed mobiliseapplabllp closed 3 weeks ago

mobiliseapplabllp commented 3 weeks ago

import { MediaCapture, MediaFile, CaptureError, CaptureImageOptions, CaptureVideoOptions } from '@awesome-cordova-plugins/media-capture/ngx';

async captureAndUploadVideo(_val: any) { let options: CaptureVideoOptions = { limit: 1, quality: 60 }; const mediaFiles: any = await this.mediaCapture.captureVideo(options).then((res: any) => { console.log(res) //MediaFiles[] // i receive media Files but how to convert blobFile // i tried file plugin Fetch Api but not any working }, err=> { console.log('ERR--'); console.log(err); }); please suggest Thanks Aman Tyagi

timbru31 commented 3 weeks ago

Thanks a lot for your issue, however this channel is for bug and feature requests, not for support. 😊
You can try asking on StackOverflow or in our Slack community.