How can I stop a camera to use a different one?
in
Core Library Questions
•
2 years ago
Hello everyone. I've searched about this before but had no luck. I hope you can help me.
I'm using a selection box to start capturing video with a camera but I'd like to be able to stop it and choose a different one (in case the user requires it) but when I use Capture::stop it only stops capturing, it doesn't stop the camera. It seems to stay attached so, if I select a different device, it gives me an error which I guess is related to this situation.
How can I stop the camera so I can start a new capture with a different device during runtime? Do I need to destroy my first Capture instance and create a new one (or something around those lines)?
Thank you!
... and greetings from Mexico ;)
2