-
Notifications
You must be signed in to change notification settings - Fork 405
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
Torch not working #291
Comments
same issue . I have tried constraints={{ facingMode: "environment", advanced: [{ torch: true }] }} but it doesn't work |
Is there any update on this? I'm facing the same issue |
I've been doing research on this for about a week. I don't believe its possible with IOS from what I've read due to apple. |
@Webbwhite98 |
I am using the QrReader component successfully, but the torch (environment camera light) is not turning on when configured using the "constraints" prop of the component (tested Android and iOS devices). I am defining such property as follows:
constraints={{'torch' : true, facingMode: 'environment'}}
According to https://developer.mozilla.org/en-US/docs/Web/API/MediaTrackConstraints the torch property should be a boolean value. Is this MediaTrack Constraint actually being taken care of in this component?
The text was updated successfully, but these errors were encountered: