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

Define when gUM rejects with required PTZ constraints #228

Merged
merged 3 commits into from
Jun 16, 2020

Conversation

beaufortfrancois
Copy link
Contributor

@beaufortfrancois beaufortfrancois commented Jun 15, 2020

As discussed with @guidou, we should make it clear how getUserMedia() can reject when PTZ constraints are required.

This currently means getUserMedia({video: {pan: 1}}) for instance rejects with an OverConstrainedError. We should think about how to make sure we don't leak camera PTZ capabilities when user didn't grant access yet.

@reillyeon @eehakkin @riju @andypaicu

@beaufortfrancois beaufortfrancois changed the title Define when gUM rejects with PTZ constraints Define when gUM rejects with required PTZ constraints Jun 15, 2020
Copy link
Member

@reillyeon reillyeon left a comment

Choose a reason for hiding this comment

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

This looks good to me. Maybe add an example of passing {pan: 1} to getUserMedia as well?

@beaufortfrancois
Copy link
Contributor Author

Done in 9ab6635

@beaufortfrancois
Copy link
Contributor Author

beaufortfrancois commented Jun 16, 2020

@reillyeon The issue I'm seeing is that we would currently simply reject the getUserMedia() promise with an OverConstrainedError if camera does not support PTZ while we should ask user to grant PTZ access first.

@beaufortfrancois
Copy link
Contributor Author

I guess this is an implementation issue actually.

@riju If that looks good to you as well, please merge.

@riju
Copy link
Collaborator

riju commented Jun 16, 2020

Looks good, I guess we need to keep a track of this bug, which can help Chrome in not leaking information.

@riju riju merged commit b88321c into w3c:master Jun 16, 2020
@riju
Copy link
Collaborator

riju commented Jun 16, 2020

Will track w3c/mediacapture-main#697

@beaufortfrancois beaufortfrancois deleted the patch-4 branch June 18, 2020 07:39
@beaufortfrancois
Copy link
Contributor Author

And I've created #229

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.

3 participants