ios_setAudioPlaybackDevice method
@platform ios @detail api @author dixing @brief Sets the audio playback device. @param deviceID Device ID. You can get the ID by calling EnumerateAudioPlaybackDevices{@link #ByteRTCAudioDeviceManager#EnumerateAudioPlaybackDevices}. @return - 0: Success - < 0: Failure @note After you call followSystemPlaybackDevice:{@link #ByteRTCAudioDeviceManager#followSystemPlaybackDevice} to set the audio playback device to follow the system setting, you cannot call this API to set the audio playback device.
Implementation
Future<int?> ios_setAudioPlaybackDevice(string deviceID) async {
$() => ($instance as $p_i.ByteRTCAudioDeviceManager)
.setAudioPlaybackDevice(deviceID);
if (Platform.isIOS) {
return $();
} else {
throw UnsupportedError(
'Not Support Platform ${Platform.operatingSystem}');
}
}