Skip to content

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

Development

Successfully merging this pull request may close these issues.

3 participants