diff --git a/.changeset/witty-melons-clean.md b/.changeset/witty-melons-clean.md new file mode 100644 index 0000000000..c4e598bd43 --- /dev/null +++ b/.changeset/witty-melons-clean.md @@ -0,0 +1,5 @@ +--- +"livekit-client": patch +--- + +Ensure permission request for listDevices works for audio outputs in Firefox diff --git a/src/room/DeviceManager.ts b/src/room/DeviceManager.ts index f2f4803d82..f9abd58939 100644 --- a/src/room/DeviceManager.ts +++ b/src/room/DeviceManager.ts @@ -41,7 +41,7 @@ export default class DeviceManager { !(isSafari() && this.hasDeviceInUse(kind)) ) { const isDummyDeviceOrEmpty = - devices.length === 0 || + devices.filter((d) => d.kind === kind).length === 0 || devices.some((device) => { const noLabel = device.label === ''; const isRelevant = kind ? device.kind === kind : true;