cordova-plugin-video-editor
cordova-plugin-video-editor copied to clipboard
File path vs the actual file
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?
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.
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.
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
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?