ios_stopScreenAudioCapture method

Future<int?> ios_stopScreenAudioCapture()

@platform ios @hidden(iOS) @detail api @author liyi.000 @brief 在屏幕共享时,停止使用 RTC SDK 内部采集方式,采集屏幕音频。 @return - 0: 调用成功。 - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 @note - 调用本接口时,采集模式应为内部模式。在外部采集模式下调用无效,并将触发 rtcEngine:onAudioDeviceWarning:deviceType:deviceWarning:{@link #ByteRTCEngineDelegate#rtcEngine:onAudioDeviceWarning:deviceType:deviceWarning} 回调。 - 要开始屏幕音频内部采集,调用 startScreenAudioCapture:{@link #ByteRTCEngine#startScreenAudioCapture}。

Implementation

Future<int?> ios_stopScreenAudioCapture() async {
  $() => ($instance as $p_i.ByteRTCEngine).stopScreenAudioCapture();

  if (Platform.isIOS) {
    return $();
  } else {
    throw UnsupportedError(
        'Not Support Platform ${Platform.operatingSystem}');
  }
}