simple-chat-app
simple-chat-app copied to clipboard
Question: Start video from on click event
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.