new TrimAction()

Description

Class for shortening a video to the specified range.

Details

Visit VideoEdit for an example

Methods


getActionTag() → {string}

Description

Returns the custom name tag that was given to this action

Returns

startOffset( offset ) → {this}

Description

Sets the starting position of the part of the video to keep when trimming videos.

Parameters
Name Type Description
offset string | number

The starting position of the part of the video to keep. This can be specified as a float representing the time in seconds or a string representing the percentage of the video length (for example, "30%" or "30p").

Returns

setActionTag() → {this}

Description

Sets the custom name tag for this action

Returns

toString() → {string}

Description

Calls toString() on all child qualifiers (implicitly by using .join()).

Returns
Details

endOffset( offset ) → {this}

Description

Sets the end position of the part of the video to keep when trimming videos.

Parameters
Name Type Description
offset string | number

The end position of the part of the video to keep. This can be specified as a float representing the time in seconds or a string representing the percentage of the video length (for example, "30%" or "30p").

Returns

addQualifier( qualifier ) → {this}

Description

Adds the parameter to the action.

Parameters
Name Type Description
qualifier SDK.Qualifier
Returns

duration( duration ) → {this}

Description

Sets the duration of the video to keep.

Parameters
Name Type Description
duration string | number

The length of the part of the video to keep. This can be specified as a float representing the time in seconds or a string representing the percentage of the video length (for example, "30%" or "30p").

Returns

addFlag( flag ) → {this}

Description

Adds a flag to the current action.

Parameters
Name Type Description
flag Qualifiers.Flag
Returns
Details