v8.89.8

Video editor methods

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 Redact, Frame, and Fill util are currently not supported when using the video extension.

Live demo of Pintura with video editor extension

A list of methods available when the trim plugin is registered.

Method Description
play() Starts playing a video.
pause() Pauses a playing video.
togglePlayPause() Toggle between play and pause mode.
isPaused() Returns true if the video is paused.
mute() Mutes audio.
unmute() Restores audio.
toggleMute() Toggles mute state.
getDuration() Returns the video duration in seconds.
getCurrentTime() Returns the current position in seconds.
setCurrentTime(seconds) Sets the current position in seconds.

play

Starts playing a video.

pause

Pauses a playing video.

togglePlayPause

Toggle between play and pause mode.

isPaused

Returns true if the video is paused.

mute

Mutes audio.

unmute

Restores audio.

toggleMute

Toggles mute state.

getDuration

Returns the video duration in seconds.

getCurrentTime

Returns the current position in seconds.

setCurrentTime

Sets the current position in seconds.