[mediacapture-output] Behavior when device changes (#88)

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

== Behavior when device changes ==
I would like some clarifications regarding the described behavior when the device is unplugged and replugged. When a device is no longer available the spec states:

"if the media element's paused attribute is false when the device identified by the sinkId is no longer available, then playback will continue as normal. In this case, audio will not be rendered because the device to which the media element is attached is unavailable."

The way I perceive it is that we should not switch to another device. Instead, playback should continue without audio playing. Which means that we should continue advancing the position of the track but without having the audible result

I am testing the Chrome's behavior and when the current output is removed it does switch to the system's default device

I am testing Chrome's behavior and when the current output is removed it does switch to the system's default device. Is this because Chrome has not aligned with the spec yet?

Considering the following sample can anyone please clarify what is the expected behavior according to the spec?

```
element.srcObject = valid_media_stream;
element.play();
// sink2 is an external usb devive
element.setSinkId("sink2");
// wait a few seconds.
unplug sink2
// wait a few seconds.
replug sink2
```


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

Received on Friday, 6 March 2020 17:02:00 UTC