Skip to content

Interface: EditorConfig ​

Configuration for the video trimmer editor UI.

Extends ​

Properties ​

PropertyTypeDescriptionInherited from
alertOnFailCloseTextstringText for the close button of the fail-to-load alert.-
alertOnFailMessagestringMessage of the fail-to-load alert.-
alertOnFailTitlestringTitle of the fail-to-load alert.-
alertOnFailToLoadbooleanWhether to show an alert dialog when the media file fails to load.-
autoplaybooleanWhether to auto-play the video when the editor opens.-
cancelButtonTextstringText for the cancel button.-
cancelDialogCancelTextstringText for the dismiss button in the cancel confirmation dialog.-
cancelDialogConfirmTextstringText for the confirm button in the cancel confirmation dialog.-
cancelDialogMessagestringMessage of the cancel confirmation dialog.-
cancelDialogTitlestringTitle of the cancel confirmation dialog.-
cancelTrimmingButtonTextstringText for the cancel-trimming button.-
cancelTrimmingDialogCancelTextstringText for the dismiss button in the cancel-trimming dialog.-
cancelTrimmingDialogConfirmTextstringText for the confirm button in the cancel-trimming dialog.-
cancelTrimmingDialogMessagestringMessage of the cancel-trimming confirmation dialog.-
cancelTrimmingDialogTitlestringTitle of the cancel-trimming confirmation dialog.-
changeStatusBarColorOnOpen?booleanAndroid only. Whether to update the status bar to a black background when the editor opens.-
closeWhenFinishbooleanWhether to automatically close the editor when trimming finishes.-
durationFormat?stringFormat token for the editor's start / current / end time labels. Allowed values: - "mm:ss": minutes:seconds (e.g. 01:23) - "mm:ss.SS": centiseconds (e.g. 01:23.45) - "mm:ss.SSS": milliseconds (e.g. 01:23.456), default - "hh:mm:ss": hours:minutes:seconds (e.g. 00:01:23) - "hh:mm:ss.SSS": hours:minutes:seconds.milliseconds (e.g. 00:01:23.456) Unknown values fall back to the default. Only affects on-screen labels; onLoad / onFinishTrimming payloads continue to report raw milliseconds.-
enableCancelDialogbooleanWhether to show a confirmation dialog when the cancel button is pressed.-
enableCancelTrimmingbooleanWhether the user can cancel a trim that is in progress.-
enableCancelTrimmingDialogbooleanWhether to show a confirmation dialog when cancelling an in-progress trim.-
enableEditToolsbooleanWhether to show the top toolbar of edit tools (flip, rotate, crop, mute, speed, undo, redo). Set to false to hide the entire toolbar. Default true. Video only: the toolbar never appears for audio files.-
enableHapticFeedbackbooleanWhether to enable haptic feedback when interacting with the trimmer.-
enablePreciseTrimmingbooleanWhen true, FFmpeg re-encodes the video using the platform's hardware encoder (h264_videotoolbox on iOS, h264_mediacodec on Android) for frame-accurate trimming. When false (default), uses stream copy (-c copy) which is much faster but can only cut at keyframes, so the actual start/end may drift by several seconds. Note: if the user applies any transform (flip/rotate/crop), re-encoding already happens regardless of this flag, so precise trimming comes for free in that case.BaseOptions.enablePreciseTrimming
enableSaveDialogbooleanWhether to show a confirmation dialog when the save button is pressed.-
fullScreenModalIOSbooleaniOS only. Whether to present the editor as a full-screen modal.-
handleIconColor?numberColor of the trimmer left/right handle icons as a processColor value.-
headerTextstringCustom header text displayed at the top of the editor.-
headerTextColornumberColor of the header text as a processColor value.-
headerTextSizenumberFont size of the header text in sp/pt.-
jumpToPositionOnLoadnumberPosition in milliseconds to seek to when the editor loads. Set to -1 to disable.-
maxDurationnumberMaximum allowed duration for the trimmed clip in milliseconds. Set to -1 for no limit.-
minDurationnumberMinimum allowed duration for the trimmed clip in milliseconds. Set to -1 for no limit. The editor never allows a selection shorter than 1 second.-
openDocumentsOnFinishbooleanWhether to open the system document picker to save the output after trimming finishes.-
openShareSheetOnFinishbooleanWhether to open the share sheet after trimming finishes.-
outputExtstringOutput file extension (e.g. "mp4", "wav").BaseOptions.outputExt
removeAfterFailedToSaveDocumentsbooleanWhether to remove the output file if saving through the document picker fails.-
removeAfterFailedToSavePhotobooleanWhether to remove the output file if saving to the photo library fails.BaseOptions.removeAfterFailedToSavePhoto
removeAfterFailedToSharebooleaniOS only. Whether to remove the output file if sharing fails.-
removeAfterSavedToDocumentsbooleanWhether to remove the output file after it has been saved through the document picker.-
removeAfterSavedToPhotobooleanWhether to remove the output file after it has been saved to the photo library.BaseOptions.removeAfterSavedToPhoto
removeAfterSharedbooleaniOS only. Whether to remove the output file after it has been shared.-
removeAudiobooleanWhen true, strips the audio track from the output. Default false. In the editor, playback also starts muted, and the output has no audio even if the user unmutes.BaseOptions.removeAudio
saveButtonTextstringText for the save button.-
saveDialogCancelTextstringText for the dismiss button in the save confirmation dialog.-
saveDialogConfirmTextstringText for the confirm button in the save confirmation dialog.-
saveDialogMessagestringMessage of the save confirmation dialog.-
saveDialogTitlestringTitle of the save confirmation dialog.-
saveToPhotobooleanWhether to save the output file to the device's photo library.BaseOptions.saveToPhoto
speednumberPlayback speed multiplier applied during export. 1.0 is normal speed, 2.0 is double speed, 0.5 is half speed. Valid range: 0.25–4.0. When not 1.0, re-encoding is forced regardless of enablePreciseTrimming.BaseOptions.speed
theme?stringEditor theme. "dark" (default) uses a black background with white UI elements. "light" uses a white background with black icons/text and white trimmer-handle chevrons.-
trimmerColor?numberColor of the trimmer bar as a processColor value.-
trimmingTextstringText displayed while the video is being trimmed (e.g. "Trimming video...").-
typestringMedia type: "video" or "audio".BaseOptions.type
waveformBackgroundColor?numberBackground color behind the audio waveform bars as a processColor value.-
waveformBarCornerRadius?numberCorner radius of waveform bars in dp/pt (default: 1.5).-
waveformBarGap?numberGap between waveform bars in dp/pt (default: 2).-
waveformBarWidth?numberWidth of each waveform bar in dp/pt (default: 3).-
waveformColor?numberColor of the audio waveform bars as a processColor value.-
zoomOnWaitingDuration?numberHow much time, in milliseconds, the timeline shows when it zooms in (default: 5000). When the user holds a trim handle still while dragging, the timeline zooms in to this span around the handle for finer adjustment.-

Released under the MIT License.