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

For discussion: Use MediaStream Image Capture draft API #26

Draft
wants to merge 12 commits into
base: master
Choose a base branch
from

Conversation

mweibel
Copy link

@mweibel mweibel commented Aug 27, 2020

This is a hacky way to use the ImageCapture API instead of the canvas on it's own.
I don't really know the state of the ImageCapture draft - it seems not active or progressing, really. However it enables to enable e.g. torch (constant flashlight on) on Android phones within a web browser.
I don't really expect you to merge this in - maybe just as a idea for others who search for a way to enable more things on a Camera.

The relevant changes for react-html5-camera-photo are found in my fork's image-capture branch

Ps: Ensure to import image-capture polyfill in case you use this - only Chrome seems to have this API implemented so far.

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.

2 participants