ForceTrimMode
@objc(PESDKForceTrimMode)
public enum ForceTrimMode : Int
A force trim mode.
-
Will always automatically present the composition tool or the trim tool after opening the editor and force your users to change the length of the video(s).
The composition tool will only be used if it is included in your subscription and if it is included in the menu items or if both the composition and trim tool are not included as menu items. Otherwise, the trim tool is used if it is included in your subscription.
Declaration
Swift
case always
-
Will automatically present the composition or trim tool if needed.
Will only present:
- the composition tool, if your initial composition is longer than
TrimToolControllerOptions.maximumDuration
or shorter thanTrimToolControllerOptions.minimumDuration
, or - the trim tool, if your initial video is longer than
TrimToolControllerOptions.maximumDuration
. If the video is shorter thanTrimToolControllerOptions.minimumDuration
an alert (seeTrimToolControllerOptions.videoTooShortConfirmationClosure
) is displayed as soon as the editor is opened and after dismissing the alert, the editor is closed.
The composition tool will only be used if it is included in your subscription and if it is included in the menu items or if both the composition and trim tool are not included as menu items. Otherwise, the trim tool is used if it is included in your subscription.
Declaration
Swift
case ifNeeded
- the composition tool, if your initial composition is longer than
-
Will automatically trim the video to
TrimToolControllerOptions.maximumDuration
without opening any tool. If the length of the initially loaded video(s) is shorter thanTrimToolControllerOptions.minimumDuration
and the user has the option to add more videos (because of composition), an alert (seeCompositionToolControllerOptions.compositionTooShortConfirmationClosure
) will be shown when tapping the export button and after dismissing the alert, the composition tool will automatically open. If no additional videos can be added, an alert (seeTrimToolControllerOptions.videoTooShortConfirmationClosure
) is displayed as soon as the editor is opened and after dismissing the alert, the editor is closed.Declaration
Swift
case silent