Skip to content
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

Open
wants to merge 1 commit into
base: gh-pages
Choose a base branch
from

Conversation

tovepet
Copy link

@tovepet tovepet commented Nov 30, 2023

Copy link
Member

@eladalon1983 eladalon1983 left a 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>
Copy link
Member

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.
Copy link
Member

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=]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: Missing full-stop.

Comment on lines +697 to +701
<li>
<p>Queue tasks to stop all tracks connected to sources in the
[=capture-source-set=] associated with the [=capture-session=].
</p>
</li>
Copy link
Member

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:

  1. Stop delivering frames.
  2. Queue tasks to end the old tracks.
  3. Synchronously make changes to internal slots.
  4. Synchronously invoke the callback.

Perhaps it should be:

  1. Stop delivering frames.
  2. Queue task to:
    a. Make changes to internal slots.
    b. Invoke the callback.
  3. Queue tasks to end the old tracks.

Wdyt?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Auto-pause capture when user switches captured content
2 participants