steep-balloon-41261
10/27/2022, 2:36 PMpolite-kilobyte-67570
10/27/2022, 2:39 PMpolite-kilobyte-67570
10/27/2022, 2:40 PMbest-parrot-43500
10/27/2022, 2:41 PMsetSinkId being referenced anywherebest-parrot-43500
10/27/2022, 2:46 PMaudiooutput?best-parrot-43500
10/27/2022, 2:48 PMRoom.html#switchActiveDeviceworks like a charm
polite-kilobyte-67570
10/27/2022, 7:27 PMaudioutputbest-parrot-43500
10/28/2022, 11:18 AMpolite-kilobyte-67570
10/28/2022, 11:40 AMbest-parrot-43500
10/28/2022, 11:41 AMpolite-kilobyte-67570
10/28/2022, 11:52 AMbest-parrot-43500
10/28/2022, 1:28 PMpolite-kilobyte-67570
10/28/2022, 2:06 PMgetActiveDevice and getActiveAudioDevice ?polite-kilobyte-67570
10/28/2022, 2:08 PMactive ? would this return undefined if no publication of that kind was present? or the default device? 🤔best-parrot-43500
10/28/2022, 2:31 PMgetActiveAudioOutputDevice() {
// throw exception if setSinkId isn't supported
const deviceId = this.options.audioOutput.deviceId;
if(deviceId)
return deviceId;
//else either return `undefined` here or go on to:
//check if we have the permission to access the mic (needed to list the available output devices)
//if not -> return undefined?
//if yes -> list available output devices, find 'default' device and translate to the correct device ID
}best-parrot-43500
10/28/2022, 2:33 PMgetActiveDevice For the Inputs, I think it should return undefined if we don't have any active publicationpolite-kilobyte-67570
10/28/2022, 3:06 PMlocalTracks there is already a getDeviceId function that handles this. so maybe limiting it to the audioOutput would make sensebest-parrot-43500
10/31/2022, 1:30 PMbest-parrot-43500
11/01/2022, 9:30 AMpolite-kilobyte-67570
11/01/2022, 11:07 AMempty string instead of undefined as that seems to be the correct way for “default” device according to the spec: https://w3c.github.io/mediacapture-output/#attributesbest-parrot-43500
11/01/2022, 2:29 PM