ios_followSystemCaptureDevice method

Future ios_followSystemCaptureDevice(
  1. BOOL followed
)

@platform ios @detail api @author yezijian.me @brief 设置音频采集路由是否跟随系统。 @param followed
- true: 跟随。此时,调用 setAudioCaptureDevice:{@link #ByteRTCAudioDeviceManager#setAudioCaptureDevice} 会失败。默认值。 - false: 不跟随系统。此时,可以调用 setAudioCaptureDevice:{@link #ByteRTCAudioDeviceManager#setAudioCaptureDevice} 进行设置。

Implementation

Future ios_followSystemCaptureDevice(BOOL followed) async {
  $() => ($instance as $p_i.ByteRTCAudioDeviceManager)
      .followSystemCaptureDevice(followed);

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