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

Trimming on Android

Open patrickboulay opened this issue 7 years ago • 9 comments

Is there any plan to make available trimming in android?

patrickboulay avatar Dec 17 '17 05:12 patrickboulay

Will need this function, anyone is working on that ?

januslo avatar Jan 18 '18 04:01 januslo

+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 :)

mkultra-zz avatar Feb 07 '18 01:02 mkultra-zz

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

saoron avatar Jun 25 '18 15:06 saoron

@saoron how to use in ionic3?

snowinmay avatar Feb 16 '19 13:02 snowinmay

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

saoron avatar Feb 16 '19 16:02 saoron

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

Baladitya avatar Feb 17 '19 05:02 Baladitya

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

saoron avatar Feb 19 '19 13:02 saoron

@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.

Baladitya avatar Feb 21 '19 14:02 Baladitya

@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); })

swanand6300 avatar Jun 12 '19 16:06 swanand6300