Kategorien, Pakete und Repositories suchen

Paketdetailsv1.0.6+1

tapioca

Tapioca ist ein Flutter-Plugin für die Videobearbeitung unter Android und iOS.

AndroidiOS
30-Tage-Downloads
36
Likes
151
Pub-Punkte
140

Paket installieren

flutter pub add tapioca

Paketübersicht

Aus öffentlichen Paketdaten erstellte Orientierung.

Tapioca ist ein Flutter-Plugin, das Videobearbeitungsfunktionen auf Android und iOS ermöglicht. Es ermöglicht Entwicklern grundlegende Video-Manipulationen wie Trimmen, Zusammenführen und Anwenden von Filtern direkt innerhalb von Flutter-Anwendungen. Durch eine nahtlose Integration vereinfacht Tapioca die Multimedia-Verarbeitung durch eine konsistente API über mobile Plattformen hinweg. Das Plugin ist besonders nützlich für Apps, die eine Bearbeitung von Videos direkt auf dem Gerät ohne Abhängigkeit von externen Diensten erfordern. Sein leichter Aufbau und die native Leistungsfähigkeit machen es für Echtzeit-Videoprozessierungsaufgaben geeignet.

Anwendungsfälle

  • Videobearbeitung in mobilen Apps
  • Mehrere Videoclips zusammenführen
  • Grundlegende Videofilter anwenden
  • Videoverarbeitung auf dem Gerät
  • Videobearbeitungsfunktionen in Flutter-Apps erstellen

Hauptmerkmale

  • plattformübergreifende Videobearbeitung
  • Unterstützung für Android und iOS
  • Einfache API für Videobearbeitung
  • Leicht und effizient
  • Native Leistung für Videobearbeitung

Geeignet für

  • Flutter-Entwickler, die videozentrierte Apps erstellen
  • Apps, die eine Video-Editierung auf dem Gerät erfordern
  • Entwickler, die plattformübergreifende Multimedia-Lösungen suchen
  • Projekte mit minimalem Videoverarbeitungsaufwand
  • Mobile Apps mit benutzererzeugtem Videoinhalte

Hinweise

  • Beschränkt auf grundlegende Videobearbeitungsfunktionen
  • Keine Unterstützung für erweiterte Effekte oder Übergänge
  • Abhängig von plattformspezifischen Video-Codecs
  • Erfordert sorgfältige Behandlung großer Videodateien
  • Kann in Randfällen plattformspezifische Einschränkungen aufweisen

Original-README

Originaler README-Schnappschuss aus dem verknüpften Quell-Repository. Aktuelle Inhalte finden Sie im Repository.

Tapioca - a Flutter plugin for video editing

Version Generic badge Discord tippin.me

codecov Tapioca is a Flutter plugin for video editing on Android and iOS.

Note: Feedback welcome and Pull Requests are most welcome!

Previews


No filter

Apply pink filter

Apply blue filter

Apply text filter

Apply image filter

Features

  • Develop for iOS and Android from a single codebase
  • Edit videos(Apply filter, Overlay text and images)

Installation

First, add tapioca as a dependency in your pubspec.yaml file.

iOS

Add the following entry to your Info.plist file, located in <project root>/ios/Runner/Info.plist:

  • NSPhotoLibraryUsageDescription - Specifies the reason for your app to access the user’s photo library. This is called Privacy - Photo Library Usage Description in the visual editor.
  • NSPhotoLibraryAddUsageDescription - Specifies the reason for your app to get write-only access to the user’s photo library. This is called Privacy - Photo Library Additions Usage Description in the visual editor.
Android

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' }
	}
}

Usage

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

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

Content is a class to wrap a video file.

Cup

Cup is a class to wrap a Content object and List<TapiocaBall> object.

You can edit the video by executing .suckUp().

Supported Formats

  • On iOS, the backing video editor is AVFoundation. please refer here for list of supported video formats.
  • On Android, the backing video editor is Mp4Composer-android, The supported format is only MP4.

Articles

Contributing

Contributions are welcomed!

  • Report bugs and scenarios that are difficult to implement
  • Report parts of the documentation that are unclear
  • Update the documentation / add examples
  • Implement new features by making a pull-request

Please see the following guidelines when modifying the repository
Contributing

Community

Questions and proposals are most welcome!
Discord Banner 4

Kategorien

Quell-Repository

Projekte, die dieses Paket verwenden

Noch keine Daten verfügbar.