ios_setScreenAudioChannel method
@platform ios @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
Future<int?> ios_setScreenAudioChannel(
$p_i.ByteRTCAudioChannel channel) async {
$() => ($instance as $p_i.ByteRTCEngine).setScreenAudioChannel(channel);
if (Platform.isIOS) {
return $();
} else {
throw UnsupportedError(
'Not Support Platform ${Platform.operatingSystem}');
}
}