setAudioTrackPublishIndex abstract method

Future<void> setAudioTrackPublishIndex(
  1. int index
)

Set the audio track for the media file to be publish.

Available since: 3.1.0 Description: Set the audio track for the media file to be publish. When to call: It can be called after the engine by createEngine has been initialized and the media player has been created by createMediaPlayer. Related APIs: The number of audio tracks can be obtained through the getAudioTrackCount function. Caution: This call takes effect only after multitrack mode is enabled by calling the interface setAudioTrackMode.

  • index Audio track index, the number of audio tracks can be obtained through the getAudioTrackCount function.

Implementation

Future<void> setAudioTrackPublishIndex(int index);