[mediacapture-output] Persisting deviceIds Across Sessions (#127)

Jamie0 has just created a new issue for https://github.com/w3c/mediacapture-output:

== Persisting deviceIds Across Sessions ==
I develop web applications used by broadcasters. For many of our users, the ability to use multiple audio outputs simultaneously is crucial. 

In the current version of the spec, `selectAudioOutput` doesn't appear to be designed to allow an application to persistently store the `deviceId` e.g. as a preference.

According to the spec, if I call `selectAudioOutput` and provide a deviceId that was previously authorised by the user, the user agent _may_ decide to re-authorise this, without prompting the user to select an output device.

In Firefox's current implementation, the user agent does not do this, and every time the user launches the application they need to re-select audio outputs. 

Appreciating this is an implementation decision at Mozilla, I don't feel like this specification is really designed to account for scenarios like I've described that are common in the broadcast world. By _requiring_ the browser persist explicitlyGrantedAudioOutputDevices, this would immediately solve this issue. 

I note that other Web Audio specs, such as getUserMedia and WebMidi, are not as restrictive in prohibiting access to a previously authorised device.

Please view or discuss this issue at https://github.com/w3c/mediacapture-output/issues/127 using your GitHub account


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

Received on Friday, 29 October 2021 10:02:06 UTC