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 user to access stream object -- can be used e.g. to stop recording. #37

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

allen-edia
Copy link

@allen-edia allen-edia commented Aug 16, 2017

Hi, this is intended to address #7.

The stream object is exposed to the application code.

The application code can then stop the stream with code like:

        const { stream, } = <your webcam instance>
        if (!stream) return console.error("No stream object, can't stop!")
        stream.getTracks().forEach(track => track.stop())

@nadeesha
Copy link

nadeesha commented Oct 27, 2017

@amw, is there any way to get this merged? This is a trivial change that alleviates some crucial pain points. (Like turning off the webcam) Thanks!

@inakiarroyo
Copy link

@amw I am having the same issue of #7 and this PR solves the problem, could it be merged? Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants