simple-chat-app icon indicating copy to clipboard operation
simple-chat-app copied to clipboard

Question: Start video from on click event

Open MartinKG60 opened this issue 4 years ago • 0 comments

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.

MartinKG60 avatar Mar 01 '20 22:03 MartinKG60