flutterjanus / flutter_janus_client

A plugin that allows the flutter app to communicate with a Janus server using different transport mechanisms, such as WebSocket and HTTP(rest). It features a developer-friendly api to interact with various WebRTC Janus Plugins. Hence, it can be considered as a swiss-knife for WebRTC solutions.
MIT License
134 stars 76 forks source link

In Android call directly run on a Speaker mode. #136

Closed ChiragSavsani closed 1 year ago

ChiragSavsani commented 1 year ago

The call feature was implemented successfully in my application. In iOS it is working as expected but not in Android.

Call directly runs on a speaker, even if Bluetooth is connected, but this is working fine in iOS. Are there any methods or other things we need to take care of in Android?

shivanshtalwar commented 1 year ago

For native you need to use flutter webrtc i/o methods Look here for reference https://github.com/flutter-webrtc/flutter-webrtc/blob/1b628ceb014232a4e99c9895ff257ffd17bc4ff7/lib/src/helper.dart#L80 Therefore you need to use

Helper.selectAudioOutpu(deviceIdOfBluetoothDevice)