ios_followSystemPlaybackDevice method
@platform ios
@detail api
@author yezijian.me
@brief 设置音频播放路由是否跟随系统。
@param followed
- true: 跟随。此时,调用 setAudioPlaybackDevice:{@link #ByteRTCAudioDeviceManager#setAudioPlaybackDevice} 会失败。默认值。
- false: 不跟随系统。此时,可以调用 setAudioPlaybackDevice:{@link #ByteRTCAudioDeviceManager#setAudioPlaybackDevice} 进行设置。
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}');
}
}