LEADTOOLS Support
General
General Questions
Capture Control - be notified if USB camera is disconnected during recording
This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
Groups: Registered
Posts: 4
We're using the capture control (v 17.5) to record from USB camera devices, sometimes we record from 2 cameras simultaneously. We have a requirement that if during recording a camera is disconnected we can inform the user, but I cannot find how to do this. The CaptureCtrl has events ErrorAbort, RestartApplication and MediaEvent but MediaEvent is only for DVD events and the other two events don't fire when I unplugged the camera.
Is there an event (or something else) in CaptureCtrl that can do this? If not I can only assume I'll need to have another thread which periodically checks that the video device is still in the CaptureCtrl.VideoDevices list?
Groups: Registered, Tech Support
Posts: 1,326
Was thanked: 1 time(s) in 1 post(s)
You can use the ltmmCapture.VideoDevices.Refresh Method to rebuild the collection of system-registered devices. And then you can check the ltmmCapture.VideoDevices[Camera Index] to see if it is still valid.
Thanks,
Maen Badwan
LEADTOOLS Technical Support
LEADTOOLS Support
General
General Questions
Capture Control - be notified if USB camera is disconnected during recording
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.