Skip to main content
Language

Force Trim - Fixed Length Video

If you configured the trim tool to restrict the duration of the video by setting a minimum and/or maximum duration you can define the startup behavior of the video editor as follows:

forceMode#

The configuration.trim.forceMode option determines how the video editor behaves. For this, three options are provided:

  1. ALWAYS

In this mode, the composition or trim tool will always automatically be presented after opening for the user to review and adjust the length of the video.

  1. IF_NEEDED

In this mode, the editor will only present

  • the composition tool, if your initial composition is longer than maximumDuration or shorter than minimumDuration, or
  • the trim tool, if your initial video is longer than maximumDuration.
  1. SILENT

In this mode, the editor will automatically trim the video to the maximumDuration without opening any tool.