Skip to content

📷 📹 ✂️ An Ionic 2 app that shows how to use the cordova-plugin-video-editor and cordova-plugin-instagram-assets-picker plugins.

Notifications You must be signed in to change notification settings

rossmartin/video-editor-ionic2

Repository files navigation

VideoEditor: An Ionic 2 App 📷 📹 ✂️

This is an Ionic 2 app that shows how to use the cordova-plugin-video-editor and cordova-plugin-instagram-assets-picker plugins. It allows transcoding a video with every possible setting the video editor plugin provides as well as trimming, creating thumbnails, and getting video info (width, height orientation, duration, size, & bitrate).

GIF

Watch the video here.

How to try the app

  1. Install the the latest beta version of the Ionic CLI:

    npm install -g ionic@beta
    
  2. Clone this repository

    git clone https://github.com/rossmartin/video-editor-ionic2
    
  3. Navigate to the app directory:

    cd video-editor-ionic2
    
  4. Install the dependencies

    npm install
    

From here you can build and run the app on different platforms using the traditional Ionic commands (ionic build ios, etc.)

I have only tested this app on iOS but it should run fine on Android. Transcoding videos on Android will be much slower because the video editor plugin uses ffmpeg on Android. I have had terrible luck with HTML5 videos in the past on Android as well so YMMV there also.

I can't get everything in the app to work with the WkWebView. Setting a time range on a video and the cover frame is still really smooth in iOS 9 on the UIWebView though. One particular issue with the WkWebView is that you cannot set allowsInlineMediaPlayback to true and this is a problem for HTML5 video.

Cropping on the iOS Simulator does not work, it only works on devices. I think this is an issue with GPUImage and will be looking into it.

About

📷 📹 ✂️ An Ionic 2 app that shows how to use the cordova-plugin-video-editor and cordova-plugin-instagram-assets-picker plugins.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published