question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Closing camera stream

See original GitHub issue

Is there a way to manually close the camera stream? Right now we have an issue where the camera will stay on when you start the component that uses <qrcode-stream> and close it before the camera is loaded. It will then turn on after the component has been closed and will stay on until the application is reloaded. It would be great to have a way to cancel / shutdown the stream when the component is unmounted or something, or to manually close any open streams.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
ItsANameToocommented, Dec 10, 2018

Thanks, will test that in a bit. For the time being I had disabled closing the component until the stream was properly loaded, which also solved the issue as you could no longer immediately close it 😬

1reaction
ItsANameToocommented, Dec 4, 2018

Thanks, I’ll take a look into the demo you linked and the workaround. If you need any additional information to reproduce it, let me know!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Stop/Close webcam stream which is opened by navigator ...
This only stops showing the video in the <video> tag, but doesn't stop the camera. – G. Führ. Dec 28, 2015 at 13:08....
Read more >
Camera Stream not closing (keeps connection alive)
I am streaming a camera. On lovelace I have the camera card. So a picture appears. As soon as I click on the...
Read more >
Ending a camera video stream in Python / threading
But the serve_forever command means that it's permanently streaming (unsurprisingly!) and won't move out of it to go back to capture. I've tried ......
Read more >
Stream Deck: shut down camera : r/elgato - Reddit
Stream Deck: shut down camera. Hi there,. I'd love to be able to "black out" or anything else my camera with the press...
Read more >
Video Streaming Raspberry Pi Camera | Random Nerd Tutorials
close () at the end of the camera streaming script. I hope this helps. Regards, Sara. Reply.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found