🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis
Socket
Book a DemoInstallSign in
Socket

@bazuka5801/cordova-plugin-video-trimming-editor

Package Overview
Dependencies
Maintainers
1
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bazuka5801/cordova-plugin-video-trimming-editor

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

latest
Source
npmnpm
Version
0.0.32
Version published
Weekly downloads
33
560%
Maintainers
1
Weekly downloads
 
Created
Source

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系でのレイアウト調整

FAQs

Package last updated on 31 Jan 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts