-
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
Issue 38 - Cursor constraint #58
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.
Probably better to change the authors in a separate PR, but this looks fine.
Do you think that there is any point in mentioning that the browser needs to determine how long to render the cursor for after movement stops?
index.html
Outdated
@@ -245,7 +245,7 @@ <h2 id="display-constraints"> | |||
New Constraints for Captured Display Surfaces | |||
</h2> | |||
<p> | |||
Two constraints are defined that allow an application to observe properties of the | |||
Following new constraints are defined that allow an application to observe properties of the |
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.
Missing "the"
thanks @martinthomson for the review. Sure adding a statement to remove the cursor when there is no movement might be handy. Would something like this work ? "The captured cursor is removed when there is no further movement of the pointer for certain period of time (as determined by the user agent) to ensure smoother user experience." |
Yeah, that works. I would drop the tail: "The captured cursor is removed when there is no further movement of the pointer for certain period of time, as determined by the |
<dfn><code id="idl-def-CursorCaptureConstraint.always">always</code></dfn> | ||
</td> | ||
<td> | ||
a <a>always</a> cursor capture constraint includes the cursor in the captured display surface. |
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.
a -> an
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.
@juberti my bad .. I will get this fixed.
Two constraints are defined that allow an application to observe properties of the | ||
selected <a>display surface</a>. Since the source of media cannot be changed after a | ||
Following new constraints are defined that allow an application to observe the properties | ||
of the selected <a>display surface</a>. Since the source of media cannot be changed after a |
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.
This sentence seems wrong - we do want the app to change the constraints, not just observe them.
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.
Good catch.
@suhasHere, we need to reframe this section. Rather than do the obvious, and split the section on constraints into two, we should make it clear that though constraints don't affect selection (as much as people might like them to), they still affect the shape of the stream that is produced.
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.
@juberti @martinthomson I was planning to do constraints related work in a separate PR that also deals with bringing back few constraints as decided in the last meeting. Would it be ok, if I address the general constraints ideas in there ?
Think this one still needs a bit more work. |
@juberti FYI Tried After setting the constraints https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrack/getConstraints#Return_value
the resulting object still had
Outside of using The screen-capture directory at wpt there does not appear to include a test for cursor. |
Hi, can you confirm that when a capture is started through |
Following up on the discussions in the issue, this PR adds cursor constraint that enumerates the conditions for capturing the cursor.