ios_setScreenAudioChannel method

Future<int?> ios_setScreenAudioChannel(
  1. ByteRTCAudioChannel channel
)

@platform ios @hidden(iOS) @detail api @author zhangcaining @brief 在屏幕共享时,设置屏幕音频流的声道数 @param channel 声道数,参看 ByteRTCAudioChannel{@link #ByteRTCAudioChannel} @return - 0: 调用成功。 - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 @note 当你调用 setScreenAudioStreamIndex: 并设置屏幕音频流和麦克风音频流混流时,此接口不生效,音频通道数由 setAudioProfile:{@link #ByteRTCEngine#setAudioProfile} 控制。

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}');
  }
}