# 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](/pintura/pricing/)

Please note that client-side video encoding is useful for encoding short videos, it's advised to use [server side encoding](/pintura/docs/v8/api/video-editor/server/) 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](/pintura/video-editor/)

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

| Method                                     | Description                              |
| ------------------------------------------ | ---------------------------------------- |
| [play()](#play)                            | Starts playing a video.                  |
| [pause()](#pause)                          | Pauses a playing video.                  |
| togglePlayPause()                          | Toggle between play and pause mode.      |
| [isPaused()](#ispaused)                    | Returns true if the video is paused.     |
| [mute()](#mute)                            | Mutes audio.                             |
| [unmute()](#unmute)                        | Restores audio.                          |
| [toggleMute()](#togglemute)                | Toggles mute state.                      |
| [getDuration()](#getduration)              | Returns the video duration in seconds.   |
| [getCurrentTime()](#getcurrenttime)        | Returns the current position in seconds. |
| [setCurrentTime(seconds)](#setcurrenttime) | 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.