Skip to content
This repository has been archived by the owner on Jun 2, 2020. It is now read-only.

Question: Start video from on click event #5

Open
MartinKG60 opened this issue Mar 1, 2020 · 0 comments
Open

Question: Start video from on click event #5

MartinKG60 opened this issue Mar 1, 2020 · 0 comments

Comments

@MartinKG60
Copy link

Hello,

Thanks for the tutorial.
I couldn't find any other way of contacting you.

I've followed the tutorial, and it works great. However, I would like to start the camera when the user clicks a button. I've tried wrapping the navigator.getUserMedia inside a function, but it seems like the stream is being called last, so the connection is never made.

Also, how would you go and close a connection?
Thanks.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant