setBluetoothMode abstract method

Future<int?> setBluetoothMode(
  1. BluetoothMode mode
)

On iOS, you can change the Bluetooth profile when the media volume is set in all scenarios.

mode: The Bluetooth profiles.

You will receive RTCVideoEventHandler.onAudioDeviceWarning in the following scenarios:

  • You cannot change the Bluetooth profile to HFP.
  • The media volume is not set in all scenarios. We suggest that you call setAudioScenario to set the media volume scenario before calling this API.

Implementation

Future<int?> setBluetoothMode(BluetoothMode mode);