tapioca
Tapioca は、Android および iOS での動画編集用の Flutter プラグインです。
Android および iOS での動画編集用の Flutter プラグイン。
以下は英語原文のスナップショットです。最新版は GitHub をご覧ください。
Tapioca is a Flutter plugin for video editing on Android and iOS.
Note: Feedback welcome and Pull Requests are most welcome!
![]() No filter |
![]() Apply pink filter |
![]() Apply blue filter |
![]() Apply text filter |
![]() Apply image filter |
First, add tapioca as a dependency in your pubspec.yaml file.
Add the following entry to your Info.plist file, located in <project root>/ios/Runner/Info.plist:
Privacy - Photo Library Usage Description in the visual editor.Privacy - Photo Library Additions Usage Description in the visual editor.Step 1. Ensure the following permission is present in your Android Manifest file, located in <project root>/android/app/src/main/AndroidManifest.xml:
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
Step 2. Add the JitPack repository to your Android build file, located in <project root>/android/build.gradle:
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
import 'package:tapioca/tapioca.dart';
import 'package:path_provider/path_provider.dart';
final tapiocaBalls = [
TapiocaBall.filter(Filters.pink),
TapiocaBall.imageOverlay(imageBitmap, 300, 300),
TapiocaBall.textOverlay("text",100,10,100,Color(0xffffc0cb)),
];
var tempDir = await getTemporaryDirectory();
final path = '${tempDir.path}/result.mp4';
final cup = Cup(Content(videoPath), tapiocaBalls);
cup.suckUp(path).then((_) {
print("finish processing");
});
TapiocaBall is a effect to apply to the video.
| TapiocaBall | Effect |
|---|---|
| TapiocaBall.filter(Filters filter) | Apply color filter |
| TapiocaBall.textOverlay(String text, int x, int y, int size, Color color) | Overlay text |
| TapiocaBall.imageOverlay(Uint8List bitmap, int x, int y) | Overlay images |
Content is a class to wrap a video file.
Cup is a class to wrap a Content object and List<TapiocaBall> object.
You can edit the video by executing .suckUp().
Contributions are welcomed!
Please see the following guidelines when modifying the repository
Contributing
依存関係一覧 2 件
{"sdk":"flutter"}{"sdk":"flutter"}用途で絞り込み、開発状況を比較し、採用前に元のリポジトリで要件を確認しましょう。
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗