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

Allow custom constraints to be passed to getUserMedia() #250

Open
wants to merge 1 commit into
base: master
from

Conversation

@djipco
Copy link

commented Sep 23, 2017

There is currently no way to control the webcam media constraints. This PR changes that by allowing you to pass a mediaConstraints property in the options parameter of tracking.track().

This would be very useful if you want, for example, to use a low-res feed for faster color tracking or if you need to pick a specific webcam out of many.

The suggested implementation is backwards-compatible.

Allow custom constraints to be passed to getUserMedia()
There is currently no way to control the webcam media constraints. This PR changes that by allowing you to pass a `mediaConstraints` property in the `options` parameter of `tracking.track()`.

This would be very useful if you want, for example, to use a low-res feed for faster color tracking or if you need to pick a specific webcam out of many.

The suggested implementation is backwards-compatible.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.