Re: [mediacapture-output] PING review (#116)

1. If deviceId is not already exposed in enumerateDevices, setSinkId will reject, even if the deviceId is actually corresponding to a valid audiooutput device. You are correct that "if enumerateDevices() is giving information about audiooutput devices, then you can bypass selectAudioOutput() for those devices".  That said, enumerateDevices() will expose only a subset of all audiooutput devices, contrary to what is done for capture devices after a successful getUserMedia call. "if has given access to the specific deviceId before on this page, you can bypass selectAudioOutput()" is generally wrong.
2. If you manage to guess a deviceId, you need to pass it through selectAudioOutput before using it. At that point, it is up to the User Agent to either silently accept it or show a prompt. The idea here is that applications that might want to guess deviceIds for tracking purposes will not do it given the risk of showing a prompt.

-- 
GitHub Notification of comment by youennf
Please view or discuss this issue at https://github.com/w3c/mediacapture-output/issues/116#issuecomment-755171348 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Wednesday, 6 January 2021 08:54:23 UTC