Code Monkey home page Code Monkey logo

video-editor-ionic2's Introduction

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
    
  5. Add the necessary cordova plugins

ionic plugin add cordova-plugin-camera cordova-plugin-device cordova-plugin-media-capture https://github.com/driftyco/ionic-plugin-keyboard.git cordova-plugin-statusbar cordova-plugin-spinner-dialog cordova-plugin-instagram-assets-picker cordova-plugin-video-editor

The plugins in the package.json aren't being automatically installed when doing ionic platform install ios. I think this is a bug with the Ionic beta CLI. The ionic state restore is also not working ๐Ÿ˜ž

From here you can build and run the app on different platforms using the traditional Cordova/Ionic CLI commands (cordova build ios, etc.). My mac has been having issues getting ionic build and ionic emulate to work but cordova build and cordova emulate work fine for me. I'm not the only one experiencing this, see here and here.

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.

video-editor-ionic2's People

Contributors

rossmartin avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.