setScreenAudioStreamIndex abstract method
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:
0
: Success.<0
: Failure. See ReturnStatus for the reason.
Implementation
Future<int?> setScreenAudioStreamIndex(StreamIndex index);