cordova-plugin-video-editor icon indicating copy to clipboard operation
cordova-plugin-video-editor copied to clipboard

File path vs the actual file

Open MrBokeh opened this issue 9 years ago • 4 comments

On the description it says: "function videoCaptureSuccess(mediaFiles) {" Which should come back with an array of the media files, but it's a file path.

Actually the mediaFiles is quite useful because I can get the actual file object instead of the path for file upload.

My question is, is there an option to get the actual mediaFiles array instead of the file path for file upload to server or cloud storage?

MrBokeh avatar Jan 12 '16 08:01 MrBokeh

I think what you are after is to have the success callback on VideoEditor return an object with the following properties (similar to the cordova-plugin-media-capture) -

localURL
fullPath
MIMEType
lastModifiedDate
size

I can make this happen and it will make getting size and duration on compressed/trimmed videos easier.

rossmartin avatar Jan 15 '16 14:01 rossmartin

Hi Ross, Yes That would be awesomely awesome!

Sent from my iPhone

On 15 Jan 2016, at 10:33 PM, Ross Martin [email protected] wrote:

I think what you are after is to have the success callback on VideoEditor return an object with the following properties (similar to the cordova-plugin-media-capture) -

localURL fullPath MIMEType lastModifiedDate size I can make this happen and it will make getting size and duration on compressed/trimmed videos easier.

— Reply to this email directly or view it on GitHub.

MrBokeh avatar Jan 15 '16 14:01 MrBokeh

I think the new getVideoInfo function may make this enhancement obsolete? I'm guessing you want this enhancement so that you can get the information provided by the getVideoInfo.

https://github.com/jbavari/cordova-plugin-video-editor#get-info-on-a-video-width-height-orientation-duration-size--bitrate

rossmartin avatar Feb 15 '16 04:02 rossmartin

I think it'd be useful to pass the file/blob directly to the transcoder instead of requiring the file path uri. That'd be one way to solve the issue in https://github.com/jbavari/cordova-plugin-video-editor/issues/53 as well. Is this something that could be added?

Redmage3555 avatar Feb 01 '17 17:02 Redmage3555