[mediacapture-screen-share] Event for screen sharing

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

== Event for screen sharing ==
Firing an event on tab being shared could notify web application to hide sensitive information or change layout during screen sharing.

Draft of this event could be:

The following event fires on `Document`:

Event name | Interface | Fired when...
-- | -- | --
screensharingchange | `Event` | The tab is started to be shared, or the entire screen is started to be shared and current tab is active. Also fired when screen sharing is stopped.

```
partial interface Document {
  readonly attribute boolean screenSharing;
}
```

Open issues:
1. Web app may be notified after it is being shared. So information leakage may happen before app takes action.
2. `screenSharing` only indicates screen sharing performed by browser.

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

Received on Wednesday, 17 October 2018 05:04:30 UTC