Re: [mediacapture-output] API to request audio output device selection (#86)

In my mind, Firefox would add `☑ Remember this decision` to this prompt (on by default).

When the box is `☐` unchecked, return a deviceId which is good immediately only (timeout? eos?)
When the box is `☑` checked, return a persistent deviceId.

But is non-persistent permission important for speakers? There's no snooping risk.

Having the option to persist these things seems necessary to enable future multi-speaker use cases.

It also seems odd if a site can remember I use my bluetooth headset as a mic, but not as a speaker.

Which brings me to...

Does this API needs to accept constraints? Specifically, the `deviceId` or `groupId` constraint, to locate different features of a user's preferred physical device? This could then either limit choices in the prompt (`exact`) or at least influence the default choice (`ideal`) (like Firefox's cam/mic prompts today).

Otherwise, a site cannot remember the user's choice from last time without permission.
Said differently: revoking or not granting persistent permission would forget the user's preference.

So far, we've been able to distinguish memory from permission.

-- 
GitHub Notification of comment by jan-ivar
Please view or discuss this issue at https://github.com/w3c/mediacapture-output/pull/86#issuecomment-556471415 using your GitHub account

Received on Wednesday, 20 November 2019 22:14:51 UTC