setScreenAudioStreamIndex abstract method

Future<int?> setScreenAudioStreamIndex(
  1. StreamIndex index
)

Sets whether to mix screen audio stream and the audio stream collected by the microphone in screen sharing.

Specify the mixing method via index:

  • main: Mixing the screen audio stream with the audio stream captured by the microphone.
  • screen: Default setting. Split the screen audio stream and the audio stream captured by the microphone into two audio streams.

Call this API before RTCRoom.publishScreen, otherwise RTCVideoEventHandler.onWarning will be triggered.

Return value:

Implementation

Future<int?> setScreenAudioStreamIndex(StreamIndex index);