Configure Audio Overlays
VideoEditor SDK supports several configuration options for the AudioToolController
allowing flexible adaptation to different needs and use cases.
For a detailed explanation on how to configure different editor views, refer to this guide.
audioClips
#
audioClips
#In order to add custom audio clips, we first load them from the bundle and add them in an array to the audioClips
property of the assetCatalog
config option.
For details consult the section on adding audio overlays from the app bundle.
allowedAudioOverlayActions
#
allowedAudioOverlayActions
#Configuring the AudioToolController
allows changing the way users can overlay clips on a video.
The actions users can perform are configured via the allowedAudioOverlayActions
property. In our example, we only enable the options to play and pause the audio clip (.playPause
).
defaultAudioClipCategoryIndex
#
defaultAudioClipCategoryIndex
#Configuring the AudioClipToolController
allows changing the way users can interact with audio clip categories.
The defaultAudioClipCategoryIndex
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.