Re: [mediacapture-screen-share] Allow screen-captured applications to influence MediaStreamTrack.label (#159)

> The value of the label for tracks received from `getDisplayMedia` is unclear if unspecified.

In general, label is for human-readable content, so I am not sure label is the best placeholder for doing computation.
Also, it seems Firefox has some nice heuristics that could be shared with other UAs. Specification could provide guidelines if those heuristics get traction.

I am also not sure how much opt-in we will actually get from web pages.

If there is a need to share more of what the shared surface is, it might be better to provide new fields.
The surface type is already provided as a separate field.
Maybe the origin of the page, or cross origin flag or the title of the surface if it is a web page could be shared to the capturing context.
The caveat is of course that we need to validate this is safe doing so.

> The user agent MAY use whichever label it wishes, as it can today.

The web page might want to do different things if it receives the UA label (forget about it) than if it knows it comes from the captured web page (actually use it).

-- 
GitHub Notification of comment by youennf
Please view or discuss this issue at https://github.com/w3c/mediacapture-screen-share/issues/159#issuecomment-810249704 using your GitHub account


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

Received on Tuesday, 30 March 2021 13:34:34 UTC