This message was deleted.
# helpdesk
s
This message was deleted.
p
My understanding is that with livekit, when a new device is connected to the machine,
That’s not expected. A certain media device that get’s acquired should stay the same for the track also when a new device gets connected. Do you have a repro of that behaviour?
you can listen to
RoomEvent.MediaDevicesChanged
event to build your synchronization logic. (or you just use the react control bar components, which do this out of the box)
a
behaviour
1. At first, the macbook speakers are the default device. 2. In this state, connect to the livekit room. 3. At this point, the livekit audio comes from the speakers. 4. After that, connect the bluetooth earphone to your macbook, and this earphone will become the default device of your macbook. 5. Then, livekit’s audio will be automatically output from the default device, the Bluetooth earphone. Does it switch by itself only when the default device is changed?
p
I didn’t realise before that you were talking about audio output .
RoomEvent.MediaDevicesChanged
is still the right event to listen to in order to update your state
a
Thank you for your help!