selectAudioTrack abstract method

Future<int?> selectAudioTrack(
  1. int index
)

Specifies the playback track of the current media file.

index: The specified playback audio track, starting from 0, and the range is [0, getAudioTrackCount()-1].
The value must be less than the return value of RTCMediaPlayer.getAudioTrackCount.

Return value:

  • 0: Success.
  • <0: Failure.

Notes: Call this API only when audio is mixing.

Implementation

Future<int?> selectAudioTrack(int index);