setAudioTrackMode abstract method

Future<void> setAudioTrackMode(
  1. ZegoMediaPlayerAudioTrackMode mode
)

Set the audio track mode of the player.

Available since: 3.1.0 Description: Set the audio track mode of the player. Use case: Under the real-time chorus (KTV), call the interface enable multi-track mode, call the interface setAudioTrackIndex to specify the original track to play, call interface setAudioTrackPublishIndex specified need publish of accompaniment tracks. When to call: The call takes effect before start starts playing Related APIs: Call setAudioTrackIndex to specified the play track of media file and call setAudioTrackPublishIndex to specified the publish track of media file. Caution: When multi-track mode is enabled, the resource consumption of the hardware device is increased.

  • mode Audio track mode.

Implementation

Future<void> setAudioTrackMode(ZegoMediaPlayerAudioTrackMode mode);