Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example project installation or installation instructions? #22

Closed
cmosboss opened this issue Jul 23, 2015 · 10 comments
Closed

Example project installation or installation instructions? #22

cmosboss opened this issue Jul 23, 2015 · 10 comments

Comments

@cmosboss
Copy link

The plugin looks amazing but I was wondering how exactly to install it and or set it up. I read through the usage instructions but I am trying to figure out exactly where I have to put stuff in order to get this to work, I am currently testing on Ionic so I do not expect someone to have an example of that but and example of the plugin in a cordova project would be amazing!

@flyakite
Copy link

Try to run this command in your project folder.
cordova plugin add https://github.com/jbavari/cordova-plugin-video-editor.git

@cmosboss
Copy link
Author

Sorry thats not exactly what I meant, the plugin installation using that command works perfectly I was asking if there was an example of it actually being used on a device. For example take a test-video.mov and split it in half using the plugin so I can figure out how to instantiate it, and use the functions as it pertains to the cordova system.

@flyakite
Copy link

If you're talking about the usage but not installation, those were already described in the Usage section of this project, from taking a video to trimming and transcoding. Sorry I don't get your point.

@kh411d
Copy link

kh411d commented Oct 19, 2015

I did run "cordova plugin add https://github.com/jbavari/cordova-plugin-video-editor.git"
Got this undefined VideoEditor, it seems not loaded, tried to listen to 'deviceready' but still got undefined VideoEditor, I'm on Cordova 5.2.0 android build

@web75018
Copy link

web75018 commented Nov 3, 2015

hi there. i need to use it with ionic too.
any step by step or how to article?
what i did :
1/ cordova plugin add ... (success)
2/ add <script src="js/VideoEditor.js"></script> into my index.html file
3/ add angular.module('starter', ['ionic', 'starter.controllers', 'ngCordova', 'VideoEditor']) into my app.js

i got injection erreur:
[$injector:modulerr] Failed to instantiate module starter...

what's wrong?, what else?
thanks a lot

@rossmartin
Copy link
Collaborator

@web75018

You don't need to include a js file in your index.html or inject a VideoEditor angular module. The plugin will make VideoEditor and VideoEditorOptions global. The VideoEditor.js and VideoEditorOptions.js will be automatically added by cordova.

Here is the necessary stuffs in plugin.xml that makes this happen

<js-module name="VideoEditor" src="www/VideoEditor.js">
    <clobbers target="VideoEditor" />
</js-module>

<js-module name="VideoEditorOptions" src="www/VideoEditorOptions.js">
    <clobbers target="VideoEditorOptions" />
</js-module>

I am not sure that this plugin can work with PhoneGap Build. I use this plugin in my Ionic app and it works fast in iOS but slow in Android because it uses ffmpeg.

I haven't upgraded my Android project in awhile and I think the reason you all may be experiencing issues is because the newer cordova uses gradle instead of ant. When I get some time I'll try making a build for Android using the latest cordova CLI and platform version for Android.

@web75018
Copy link

web75018 commented Nov 4, 2015

Thanks a lot for reply!!!
i try to use it inside ionic project too.
will try to update the plugin.xml file and feedback.

2015-11-04 2:02 GMT+01:00 Ross Martin notifications@github.com:

@web75018 https://github.com/web75018

You don't need to include a js file in your index.html or inject a
VideoEditor angular module. The plugin will make VideoEditor and
VideoEditorOptions global. The VideoEditor.js and VideoEditorOptions.js
will be automatically added by cordova.

Here is the necessary stuffs in plugin.xml that makes this happen

I am not sure that this plugin can work with PhoneGap Build. I use this
plugin in my Ionic app, works fast in iOS but slow in Android because it
uses ffmpeg.


Reply to this email directly or view it on GitHub
#22 (comment)
.

Abid

@srinivasulurao
Copy link

@rossmartin this plugin is not working, when i tried through the console, its showing me the error "Can't access or make Movies directory", can u please please please help me on this context.

@rossmartin
Copy link
Collaborator

This should be fixed by ab2bc26

@ABr751
Copy link

ABr751 commented Jan 18, 2018

the trim option is not working

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants