Skip to content

Interface: VideoTrimEventMap ​

Editor events and their payloads. Events without a payload map to void.

On the New Architecture each key is a method on the default export that subscribes a listener. On the Old Architecture every event arrives as a single native "VideoTrim" event, see VideoTrimEvent.

Properties ​

PropertyTypeDescription
onCancelvoidThe user closed the editor without trimming.
onCancelTrimmingvoidThe user cancelled a trim that was in progress.
onErrorVideoTrimErrorEventLoading, trimming or saving failed.
onFinishTrimmingFinishTrimmingEventTrimming completed and the output file was written.
onHidevoidThe editor was dismissed.
onLoadLoadEventThe media finished loading in the editor.
onLogLogEventFFmpeg log output while trimming.
onShowvoidThe editor was presented.
onStartTrimmingvoidThe user confirmed and trimming started.
onStatisticsStatisticsEventFFmpeg encoding statistics while trimming.

Released under the MIT License.