v8.78.1

Trim plugin

The video editor extension isn't included in the Pintura image editor product package, it's available as an upgrade on the pricing page

Please note that client-side video encoding is useful for encoding short videos, it's advised to use server side encoding for content longer than a couple minutes.

The video extension currently doesn't support applying frames styles and redacting content.

Live demo of Pintura with video editor extension

Use the Trim plugin to enable easy trimming and clipping of videos

The following properties are available on the trim util.

Property Default value Description
trimEnableSplit
true
Set to false to disable splitting and merging of clips.
trimEnableFramePreview
true
Toggle frame preview control.
trimEnableMediaClipper
true
Toggle media clipper control.
trimEnablePlayPauseButton
true
Toggle play/pause button.
trimEnableMuteButton
true
Toggle mute button.
trimBeforeSetCurrentTime
undefined
Hook to intercept frame indicator from being moved to a new time.

trimEnableSplit

Set to false to disable splitting and merging of clips.

trimEnableFramePreview

Toggle frame preview control.

trimEnableMediaClipper

Toggle media clipper control.

trimEnablePlayPauseButton

Toggle play/pause button.

trimEnableMuteButton

Toggle mute button.

trimBeforeSetCurrentTime

Hook to intercept frame indicator from being moved to a new time.

In this example we limit the current time position to the trim range.

openDefaultEditor({
    src: 'my-video.mp4',
    trim: [[0.25, 0.75]],
    trimBeforeSetCurrentTime: (currentTime, { trim }) => {
        const [range] = trim;
        if (currentTime < range[0]) return range[0];
        if (currentTime > range[1]) return range[1];
        return currentTime;
    },
});

Trim plugin exports

The Pintura Video module exports the following Trim plugin objects.

Export Description
plugin_trim The trim util view.
plugin_trim_locale_en_gb The trim util locales.