selectMultiAudioTrack abstract method
Selects the audio tracks for local playback and remote publishing.
You can call this method to separately set the audio tracks for local playback and for publishing to the remote end. Before calling this method, you must open the media file using openWithMediaSource and set enableMultiAudioTrack to true via MediaSource.
playoutTrackIndexThe index of the audio track used for local playback. You can get the index via getStreamInfo.publishTrackIndexThe index of the audio track used for publishing to the remote end. You can get the index via getStreamInfo.
Returns When the method call succeeds, there is no return value; when fails, the AgoraRtcException exception is thrown. You need to catch the exception and handle it accordingly. < 0: Failure.
Implementation
Future<void> selectMultiAudioTrack(
{required int playoutTrackIndex, required int publishTrackIndex});