Skip to main content
Language

Configure Video Composition

VideoEditor SDK supports several configuration options for the CompositionToolController allowing flexible adaptation to different needs and use cases. For a detailed explanation of how to configure different editor views, refer to this guide.

videoClips#

In order to add custom video clips, we first load them from the bundle and add them in an array to the videoClips property of the assetCatalog config option.

videoClipLibraryMode#

Configuring the CompositionToolController allows changing the way users can add video clips. By default, the editor presents an image picker for adding video clips to the composition. In this example, we present the VideoClipToolController which lets users select video clips that have been added to the AssetCatalog.

defaultVideoClipCategoryIndex#

Configuring the VideoClipToolController allows changing the way users can interact with video clip categories. The defaultVideoClipCategoryIndex configures which category will be displayed first when opening the selection tool. In our example, we want the second category to be displayed by default.

personalVideoClipsEnabled#

By default, the user is allowed to add personal video clips from the device. In this example, the user is only allowed to add video clips that are predefined in the editor configuration.