jbavari / cordova-plugin-video-editor

A cordova plugin to edit videos.
Other
289 stars 235 forks source link

Trimming on Android #139

Open patrickboulay opened 6 years ago

patrickboulay commented 6 years ago

Is there any plan to make available trimming in android?

januslo commented 6 years ago

Will need this function, anyone is working on that ?

mkultra-zz commented 6 years ago

+1 for wanting Android trimming. Any info on whether this is possible, being worked on, in the pipeline? Currently evaluating tech stack for future app and Android trimming is a requirement. Cheers :)

saoron commented 6 years ago

Hi Guys, I've implemented trim on Android using mp4parser, Here's our fork : https://github.com/dride/cordova-plugin-video-editor

Please help us test it so I could submit a PR.

Thanks

snowinmay commented 5 years ago

@saoron how to use in ionic3?

saoron commented 5 years ago

Should be a drop in replacement, you can use ionic native.

Baladitya commented 5 years ago

@saoron How to import the package in my ionic4 project?

saoron commented 5 years ago

https://ionicframework.com/docs/native/video-editor

Baladitya commented 5 years ago

@saoron Thank ,। Have implemented it but it seems like there is an issue. When i pass dynamic start and end time, it trims more then the given time.

swanand6300 commented 5 years ago

@saoron Can you help me with the process.

Currently, I just copied all your files and replace with cordova-plugin-videoeditor but still it is not working.

Here is my code: let options = { fileUri: path, // path to input video trimStart: 5, // time to start trimming in seconds trimEnd: 120, // time to end trimming in seconds outputFileName: 'output', // output file name progress: function (info) { console.log(info) } // optional, see docs on progress } this.videoEditor.trim(options).then((res) => { console.log('Success trimming!'); console.log(res) }, (err) => { console.log('Error in trimming!'); console.log(err) }).catch((err) => { console.log('Error in trimming function') console.log(err); })