How can I get the selected audio info data? (ID)

Version:
Android: 10.X

iOS: 11.X

React Native: 2.10.0

 

Please follow our different guides: 

Android:

This information is stored in the

AudioOverlaySettings

You can get the ID with the following line of code:

data.settingsList[AudioOverlaySettings::class].audioOverlay?.id

In this case, we get the ID from the AudioTrackAsset, here you can find the API documentation for the

AudioOverlaySettings

iOS:

func videoEditViewControllerDidFinish(_ videoEditViewController: VideoEditViewController, result: VideoEditorResult) {
    let selectedAudioID = result.task.model.audioModel.clips.first?.identifier
  }

React Native:

This can be retrieved from the serialization if enabled. Please refer to the docs on how to use the serialization feature as well as the current serialization scheme.