[mediacapture-screen-share] Should fire ended track event when shared window/tab is closed. (#136)

jan-ivar has just created a new issue for https://github.com/w3c/mediacapture-screen-share:

== Should fire ended track event when shared window/tab is closed. ==
(Note this talks about closing the source of sharing (e.g. a tab or window), not the page JS is in).

It was reported to us in https://bugzil.la/1615282 that Chrome does this, but Firefox does not.

The spec should speak about this.

I think it makes sense to fire the `ended` event on a screen-sharing track when its source "goes away permanently", or maybe just "is closed".

This may be trickier with sources other than windows. E.g. Multiple Displays (unsure what Chrome does there). We may even want to call out windows and tabs explicitly.

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

Received on Thursday, 13 February 2020 14:28:06 UTC