🐛(frontend) drop exact deviceId constraint on dynamic track creation

Dynamic track creation used an exact deviceId constraint based on
the device id persisted in localStorage. If that device was no
longer available on reconnect, the browser raised a DOMException
instead of falling back to another device.

Drop the exact constraint so the browser can pick any available
device when the persisted one is gone.
This commit is contained in:
lebaudantoine
2026-08-07 17:43:37 +02:00
committed by aleb_the_flash
parent fb3ee56702
commit 186d16c46f
2 changed files with 6 additions and 2 deletions
+4
View File
@@ -13,6 +13,10 @@ and this project adheres to
- ♻️(frontend) encapsulate error tracking behind a telemetry module
- ♻️(frontend) encapsulate PostHog capture calls in the telemetry module
### Fixed
- 🐛(frontend) drop exact deviceId constraint on dynamic track creation
## [1.25.2] - 2026-08-06
### Fixed
@@ -193,7 +193,7 @@ export const Join = ({
const createVideoTrack = async () => {
try {
const track = await createLocalVideoTrack({
deviceId: { exact: videoDeviceId },
deviceId: videoDeviceId,
processor:
BackgroundProcessorFactory.fromProcessorConfig(processorConfig),
})
@@ -223,7 +223,7 @@ export const Join = ({
const createAudioTrack = async () => {
try {
const track = await createLocalAudioTrack({
deviceId: { exact: audioDeviceId },
deviceId: audioDeviceId,
noiseSuppression: true,
echoCancellation: true,
autoGainControl: true,