Skip to content

How to set which webcam to use in WebCamConfig #311

Answered by vladmandic
IgorSamer asked this question in Q&A
Discussion options

You must be logged in to vote

Is there any way to define the camera label I want to use

not explicitly, but its a good feature-request, i'll add it.

in the meantime, you can try mode: front or mode: back if it helps.
(that api is not explictly designed to select multiple webcams, but for mobile phones with user-facing or back-facing cameras.)

I would also like to know what the crop: true property does exactly

crop: true means when width/height are set, it will perform a center-crop to exact specified width/height.
if crop: false, it will select stream that fits contstraints, but if it doesn't match width/height exactly, it will leave it as-is.

for example, you may want 500 x 500, but camera does not have that nati…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@IgorSamer
Comment options

Answer selected by IgorSamer
Comment options

You must be logged in to vote
1 reply
@IgorSamer
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants