flutter-webrtc / dart-sip-ua

A dart-lang version of the SIP UA stack.
MIT License
336 stars 259 forks source link

Output source(bluetooth,earphone,speaker) controls #260

Open 97loser opened 2 years ago

97loser commented 2 years ago

Hello, I'm searching for a way to control output sources e.g. Bluetooth, earphones and speaker. whenever I connect my Bluetooth it then automatically connected and I'm getting below output in my console.

_New device status: available=[BLUETOOTH, SPEAKER_PHONE, EARPIECE], selected=BLUETOOTH D/FlutterWebRTCPlugin(21519): onAudioManagerDevicesChanged: [BLUETOOTH, SPEAKER_PHONE, EARPIECE], selected: BLUETOOTH D/RTCAudioManager(21519): --- updateAudioDeviceState done D/RTCBluetoothManager(21519): onReceive done: BT state=SCO_CONNECTED_

Is there any way to controls from UI please provide your valuable answer.

Thank you.

PaulBout1 commented 2 years ago

I used another plugin to manage that. see: FLUTTER_AUDIO_MANAGER

eduardothiesen commented 2 months ago

@PaulBout1 can you further explain how you used flutter_audio_manager with sip_ua? I was not able to make it work using the audio manager. Thanks in advance