VideoEditor SDK for Flutter supports adding predefined audio libraries from which an audio clip can be overlayed on top of the video's soundtrack.
Inside the audio tool, the audio clip can be trimmed and balanced with the original soundtrack of the video.
The corresponding tool can be customized using the
For details on how to modify the options for the tool, take a look at the configuration section.
Adding audio clips#
Audio clips can be inserted into
configuration.audio.categories, which is an array of
AudioClipCategory object holds the metadata of an audio clip category, such as its preview image and the title and has an array of
which again hold the metadata for an
AudioClip, such as its
thumbnailUri and the
AudioClip class is not optimized to handle remote resources which therefore should be downloaded in advance and then passed as a local resource.
final audioOptions = AudioOptions(categories: [AudioClipCategory("custom", "Custom",items: [AudioClip("elsewhere", "assets/elsewhere.mp3")])]);final configuration = Configuration();