Skip to content
Advertisement

Tag: mediadevices

track.stop is not turning the camera off anymore

I have a webpage where I want user to take a picture with his laptop/phone camera. Once he clicks on a button a modal is shown and the following js will start the camera stream to take the picture: This is triggered by Then when I close the modal I want to stop the streaming but the led indicator next

Advertisement