setScreenAudioChannel method
@hidden(iOS) @detail api @author zhangcaining @brief Set the audio channel of the screen-sharing audio stream @param channel The number of Audio channels. See ByteRTCAudioChannel{@link #ByteRTCAudioChannel}. @return - 0: Success. - < 0 : Fail. See ByteRTCReturnStatus{@link #ByteRTCReturnStatus} for more details @note When you call setScreenAudioStreamIndex:to mix the microphone audio stream and the screen-sharing audio stream, the audio channel is set by setAudioProfile:{@link #ByteRTCEngine#setAudioProfile} rather than this API.
Implementation
FutureOr<int> setScreenAudioChannel(ByteRTCAudioChannel channel) async {
return await nativeCall('setScreenAudioChannel:', [channel.$value]);
}