-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added DisplaySurfaceChangeCallback #289
base: gh-pages
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Generally LGTM, but some suggestions.
@@ -490,7 +502,8 @@ <h2><dfn>MediaDevices</dfn> Additions</h2> | |||
<li> | |||
<p>This invocation of {{MediaDevices/getDisplayMedia()}} is | |||
now considered to have produced a new | |||
<dfn>capture-session</dfn>.</p> | |||
<dfn>capture-session</dfn>, with the associated | |||
[=capture-source-set=], <var>sources</var>.</p> | |||
</li> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should the part below, which dealt with controller.[[Source]]
, be updated to reference the video source from capture-source-set
rather than (as it does now) the "video track's source"?
(GitHub didn't let me attach this comment in the desired location.)
The user agent MUST NOT change the [=display surface=] | ||
associated with a [=capture-session=] unless the user has | ||
explicitly indicated that they want this change to be | ||
performed by interacting with user agent or operating system. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: Could you make editorial changes here so as to discourage anyone from misreading "by interacting" as binding to the wrong part of the sentence? Maybe "...performed. Users can do this by interacting with..."
<li> | ||
<p> | ||
Let <var>newSources</var> replace the [=capture-source-set=] | ||
associated with the [=capture-session=] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: Missing full-stop.
<li> | ||
<p>Queue tasks to stop all tracks connected to sources in the | ||
[=capture-source-set=] associated with the [=capture-session=]. | ||
</p> | ||
</li> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The order in the PR as it currently stands:
- Stop delivering frames.
- Queue tasks to end the old tracks.
- Synchronously make changes to internal slots.
- Synchronously invoke the callback.
Perhaps it should be:
- Stop delivering frames.
- Queue task to:
a. Make changes to internal slots.
b. Invoke the callback. - Queue tasks to end the old tracks.
Wdyt?
Fixes w3c/mediacapture-screen-share-extensions#4.
Preview | Diff