netless-io / flat

Project flat is the Web, Windows and macOS client of Agora Flat open source classroom.
https://flat.whiteboard.agora.io
MIT License
5.68k stars 815 forks source link

error with Bluetooth #2107

Closed Yan1205 closed 5 months ago

Yan1205 commented 7 months ago

When I connect Bluetooth, the audio still plays through the speakers on both the tablet and the phone instead of playing on the headphones.

Yan1205 commented 7 months ago

REP-AN00 Xiaomi Pad 6 OnePlus Ace 2 Redmi K60 Pro ...

hyrious commented 7 months ago

By "audio" do you mean the media courseware (mp3, mp4, etc.) inserted in the room, or the voice from other's microphone?

The former does not handle speaker change event since it is not common to see a web audio player to provide this function. Actually Flat uses the library plyr which does not provide a direct way to call setSinkId. So unfortunately we have no way to provide a way to switch the speaker of the media courcewares. They will use the default speaker of the system (you can set the default device in your system level).

The later one switches speakers when new devices are connected, if you find this not working you can give use more details (like which OS and which device you're using) to help us reproduce it.

stale[bot] commented 5 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.