Skip to main content
Language

From App Bundle

VideoEditor SDK supports loading audio files from the app bundle.

Create Audio Clips#

In order to load audio files from our bundle, we need to create AudioClips from them first. Therefore, we dynamically generate the identifier from the local source and combine this into a valid AudioClip.

Note that the AudioClip class is not optimized to handle remote resources, see next section on how to handle loading audio clips from remote resource.

Add to Configuration#

We then need to add the audio clips to an AudioClipCategory object which holds the metadata of the category such as a preview image and a title. These categories can then be added to the configuration.audio.categories in order to be loaded into the editor once it is opened.