Skip to main content

Force Trim - Fixed Length Video

If you configured the TrimSettings 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:

  • The composition or trim tool will always automatically be presented after opening for the user to review and adjust the length of the video. This corresponds to setting forceTrimMode to ALWAYS.
  • forceTrimMode is set to IF_NEEDED as in our example and will only present
    • the composition tool, if your initial composition is longer than maximumVideoLength or shorter than minimumVideoLength, or
    • the trim tool, if your initial video is longer than maximumVideoLength.
  • Setting forceTrimMode to SILENT will automatically trim the video to the maximumVideoLength without opening any tool and is the default behavior.