ios_followSystemPlaybackDevice method

Future ios_followSystemPlaybackDevice(
  1. BOOL followed
)

@platform ios @detail api @author yezijian.me @brief Set the audio playback device to follow the OS default setting or not. @param followed
- true: follow the OS setting. You can not call setAudioPlaybackDevice:{@link #ByteRTCAudioDeviceManager#setAudioPlaybackDevice} at the same time. The default value. - false: do not follow the OS setting. You can call setAudioPlaybackDevice:{@link #ByteRTCAudioDeviceManager#setAudioPlaybackDevice} to set the audio playback device.

Implementation

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

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