Skip to main content
Language

Configure Video Composition

VideoEditor SDK supports several configuration options for the VideoCompositionToolPanel allowing flexible adaptation to different needs and use cases.

allowAddVideoClips#

By default, the video composition tool allows adding more video clips via the video library or the gallery. It opens the video library if it is included in your subscription and has video clips. Otherwise, it opens the gallery for adding video clips to the composition.

To disable adding video clips, set UiConfigComposition.allowAddVideoClips to false.

videoClipLists#

Here, we add our custom video clips for the video library. We also add the VideoClipAddItem in this example to allow picking video clips from the gallery.

VideoClipCategoryItem is used to create categories of video clips. A VideoClipItem represents a single video clip and takes in a VideoSource for the video. The thumbnail of this video is automatically generated from the video itself. Alternatively, you can pass your own ImageSource to the VideoClipItem for a custom thumbnail.

In this example, we create VideoSource from videos present in the local resources. However, it can also be created using a File or a Uri.