VideoEditorControllerCreative extension
Stickers, range cuts, silence removal, transitions and bulk clip edits (the building blocks of the AI auto edit).
Methods
-
addEffectOverlayRange(
VideoEditorEffect effect, Duration start, Duration end) → void -
Available on VideoEditorController, provided by the VideoEditorControllerCreative extension
Adds a timed effect fromstarttoend(project time). -
addEmojiSticker(
String emoji) → void -
Available on VideoEditorController, provided by the VideoEditorControllerCreative extension
Adds an emoji sticker at the playhead. -
addImageSticker(
File image) → Future< void> -
Available on VideoEditorController, provided by the VideoEditorControllerCreative extension
Adds an image sticker (PNG/WebP with transparency works best) at the playhead. The file is copied into the app's documents so drafts keep working after the picker's cache is cleared. -
applyClipEdits(
void edit(ClipController clips)) → void -
Available on VideoEditorController, provided by the VideoEditorControllerCreative extension
Applies several clip edits as one undo step. -
beginClipTransform(
int index) → void -
Available on VideoEditorController, provided by the VideoEditorControllerCreative extension
Starts a live crop/zoom/pan of clipindexon the preview: selects it and shows the live clip preview so every change is visible at once. -
cutOutClipRange(
int index, Duration fileStart, Duration fileEnd) → bool -
Available on VideoEditorController, provided by the VideoEditorControllerCreative extension
RemovesfileStart..fileEnd(file time) from clipindex, keeping what lies before and after as two clips. One undo step. Returns false when nothing changed. -
endClipTransform(
{required bool changed}) → void -
Available on VideoEditorController, provided by the VideoEditorControllerCreative extension
Ends a live transform: records it as one undo step whenchanged, otherwise just brings the composed preview back. -
keepClipRanges(
Map< String, List< rangesByClipId, {bool dropUnlisted = false}) → DurationTimeRange> > -
Available on VideoEditorController, provided by the VideoEditorControllerCreative extension
Rebuilds the timeline so each clip inrangesByClipIdonly keeps the listed file-time ranges (silence removal). Clips not listed, or listed with no ranges, stay as they are unlessdropUnlisted(AI Shorts keeps only the picked moments). One undo step. Returns how much project time was removed. -
removeAllAudioTracks(
) → int -
Available on VideoEditorController, provided by the VideoEditorControllerCreative extension
Removes every music / sound track. One undo step. -
removeEffectOverlaysWhere(
bool test(VideoEffectOverlay effect)) → int -
Available on VideoEditorController, provided by the VideoEditorControllerCreative extension
Removes every timed effect matchingtest. One undo step. -
removeTextOverlaysWhere(
bool test(VideoTextOverlay overlay)) → int -
Available on VideoEditorController, provided by the VideoEditorControllerCreative extension
Removes every text overlay (text, captions or stickers) matchingtest. One undo step. Returns how many were removed. -
replaceClipSoundWithTracks(
List< VideoEditorAudioTrack> tracks, {required List<int> muteClips}) → void -
Available on VideoEditorController, provided by the VideoEditorControllerCreative extension
Putstracks(a cleaned-up voice) on the timeline and mutes the clips atmuteClips, as one undo step. -
scaleAudioTrackVolumes(
double factor) → void -
Available on VideoEditorController, provided by the VideoEditorControllerCreative extension
Multiplies every audio track's volume byfactor(kept within 0..2). -
setAudioCleanupForAll(
AudioCleanup cleanup) → int -
Available on VideoEditorController, provided by the VideoEditorControllerCreative extension
The same clean-up on every clip with sound. Returns how many changed. -
setClipAudioCleanup(
int index, AudioCleanup cleanup) → void -
Available on VideoEditorController, provided by the VideoEditorControllerCreative extension
Noise reduction / voice clean-up for clipindex. One undo step. -
setClipTransition(
int index, ClipTransition transition) → void -
Available on VideoEditorController, provided by the VideoEditorControllerCreative extension
-
setFillModeForAll(
VideoFillMode mode) → void -
Available on VideoEditorController, provided by the VideoEditorControllerCreative extension
Fit or fill every clip (used with the ratio picker). One undo step. -
setTransitionForAll(
ClipTransition transition) → void -
Available on VideoEditorController, provided by the VideoEditorControllerCreative extension
Usestransitionbetween every pair of clips. -
setTransitionMix(
List< ClipTransition> mix) → void -
Available on VideoEditorController, provided by the VideoEditorControllerCreative extension
A different transition on every cut, cycling throughmix. One undo step. -
trimProjectTo(
Duration target) → Duration -
Available on VideoEditorController, provided by the VideoEditorControllerCreative extension
Shortens the project totargetby trimming the end. One undo step. Returns how much was removed.
Static Methods
-
isCaption(
VideoTextOverlay overlay) → bool -
Available on VideoEditorController, provided by the VideoEditorControllerCreative extension
Whetheroverlaywas made by auto captions. -
isSticker(
VideoTextOverlay overlay) → bool -
Available on VideoEditorController, provided by the VideoEditorControllerCreative extension
Whetheroverlayis a sticker (emoji or image) rather than text.