flutter_video_editor_plugin library

Flutter binding for the Infinive Video Editor SDK.

The editing screen is native: VideoEditorCore on iOS and show.infini:videoeditor on Android. This package presents it and returns the result.

import 'package:flutter_video_editor_plugin/flutter_video_editor_plugin.dart';

final result = await VideoEditor.present(
  config: const VideoEditorConfig(licenseKey: 've_live_…'),
  onFailure: (failure) => log('editor failed: $failure'),
);
if (result != null) upload(result.videoPath);

Classes

CoverUsage
What was chosen on the cover screen.
RenderCancelled
The render was stopped with VideoEditorRenderJob.cancel.
RenderCompleted
The render finished. An empty VideoEditorResult.coverPath means no cover could be extracted.
RenderFailed
The render failed with VideoEditorFailureReason.renderFailed.
RenderOutputConfig
Output encoding settings.
TextFontSpec
A text overlay font, given as a font file declared in the pubspec.
TextUsage
Text in the rendered video.
VideoEditor
Entry point of the editor.
VideoEditorConfig
Editor configuration.
VideoEditorDraft
A draft saved on the device.
VideoEditorFailure
A failure reported through onFailure of VideoEditor.present.
VideoEditorRenderJob
A render that continues after the editor closed (VideoEditorConfig.detachedRenderEnabled). One runs at a time.
VideoEditorRenderOutcome
How a VideoEditorRenderJob ended.
VideoEditorResult
The editing result.
VideoEditorScreen
Route-based wrapper around VideoEditor.present.
VideoEditorUsage
What went into the rendered video and how the edit went.

Enums

CoverSource
Where the cover came from.
RenderAspectRatio
Output aspect ratio. Each ratio has a fixed size.
RenderVideoCodec
Output video codec.
VideoEditorFailureReason
Why the editor could not produce a result.