VideoEditorControllerClipEditing extension
Methods
-
duplicateClip(
int index) → void -
Available on VideoEditorController, provided by the VideoEditorControllerClipEditing extension
Inserts a copy of clipindexright after it. -
previewClipTrim(
{required int index, required Duration startTime, required Duration endTime}) → void -
Available on VideoEditorController, provided by the VideoEditorControllerClipEditing extension
Live trim while a timeline handle is dragged; commit with saveState. -
reframeClip(
int index, {required double subjectX, required double subjectY}) → void -
Available on VideoEditorController, provided by the VideoEditorControllerClipEditing extension
Frames clipindexso the normalized subject point (subjectX,subjectYin 0..1 of the clip frame) sits at the canvas centre, filling the canvas. Used by AI auto-reframe. -
removeClip(
int index) → void -
Available on VideoEditorController, provided by the VideoEditorControllerClipEditing extension
-
reorderClips(
int oldIndex, int newIndex) → void -
Available on VideoEditorController, provided by the VideoEditorControllerClipEditing extension
-
replaceClipMedia(
int index, File file) → Future< void> -
Available on VideoEditorController, provided by the VideoEditorControllerClipEditing extension
Replaces the media of clipindexwithfile(an AI render of the clip's trimmed range), keeping its place, speed, volume and look. -
resetClipTransform(
int index) → void -
Available on VideoEditorController, provided by the VideoEditorControllerClipEditing extension
-
saveClipCrop(
) → void -
Available on VideoEditorController, provided by the VideoEditorControllerClipEditing extension
-
selectClip(
int index) → void -
Available on VideoEditorController, provided by the VideoEditorControllerClipEditing extension
-
setCanvasColor(
Color color) → void -
Available on VideoEditorController, provided by the VideoEditorControllerClipEditing extension
Appliescoloras the canvas background of every clip. -
splitAtPlayhead(
) → bool -
Available on VideoEditorController, provided by the VideoEditorControllerClipEditing extension
Splits whichever clip is under the playhead at the playhead. -
splitAudioTrack(
dynamic idOrIndex, Duration projectTime) → void -
Available on VideoEditorController, provided by the VideoEditorControllerClipEditing extension
-
splitClip(
int index, Duration localTime, {bool record = true}) → void -
Available on VideoEditorController, provided by the VideoEditorControllerClipEditing extension
Splits clipindexatlocalTime, measured in project time from the clip's start. The second half is inserted right after the first. -
syncClipsToBeats(
{required double bpm, double strength = 1.0, Duration firstBeat = Duration.zero}) → int -
Available on VideoEditorController, provided by the VideoEditorControllerClipEditing extension
Cuts the clips on the beat grid ofbpm. -
toggleClipMute(
int index) → void -
Available on VideoEditorController, provided by the VideoEditorControllerClipEditing extension
-
updateClipBackgroundColor(
int index, Color color) → void -
Available on VideoEditorController, provided by the VideoEditorControllerClipEditing extension
-
updateClipCrop(
int index, {double? scale, double? x, double? y}) → void -
Available on VideoEditorController, provided by the VideoEditorControllerClipEditing extension
-
updateClipFillMode(
int index, VideoFillMode mode) → void -
Available on VideoEditorController, provided by the VideoEditorControllerClipEditing extension
-
updateClipSpeed(
int index, double value) → void -
Available on VideoEditorController, provided by the VideoEditorControllerClipEditing extension
-
updateClipTrim(
{required int index, required Duration startTime, required Duration endTime}) → void -
Available on VideoEditorController, provided by the VideoEditorControllerClipEditing extension
-
updateClipVolume(
int index, double value) → void -
Available on VideoEditorController, provided by the VideoEditorControllerClipEditing extension