Git Product home page Git Product logo

cordova-plugin-video-trimming-editor's Introduction

cordova-plugin-video-trimming-editor

動画ファイルを時系列でトリミングするためのUI、機能を実現するためのcordovaプラグイン。
このプラグインは以下のネイティブライブラリを使用またはインスパイアしたものです。

https://github.com/iknow4/Android-Video-Trimmer
https://github.com/HHK1/PryntTrimmerView

また、Android-Video-Trimmerで使用されているffmpegの部分のコードについてはライセンスに対する懸念から削除して使用しない形で実装しました。

※iOSとAndroidの画面イメージ
ios android

Requirement

cordova >= 7.1.0
cordova-ios >= 4.5.0
cordova-android >= 8.0.0

https://github.com/dpa99c/cordova-plugin-androidx
https://github.com/nrikiji/cordova-plugin-carthage-support
https://github.com/akofman/cordova-plugin-add-swift-support
Carthage(>= 0.3.3)

Installation

cordova plugin add cordova-plugin-video-trimming-editor

Supported Platforms

  • iOS
  • Android

Example

使用例

VideoTrimmingEditor.open(
  {
    input_path: '/path/to/xxx.mp4',
    video_max_time: 10,
  },
  function(result) {
    console.log(result); // { output_path: "/path/to/zzz.mp4" }
  },
  function(error) {
  }
);

Features

今後追加したい機能としては以下の予定です
・画面テーマまたは各要素のカラーを利用者側で設定できるようにする
・各要素のボタンテキストを固定値としているので利用者側で設定できるようにする
・トリミング後のファイルに対して圧縮する機能を追加する
・iPhoneX系でのレイアウト調整

cordova-plugin-video-trimming-editor's People

Contributors

bazuka5801 avatar nrikiji 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.