Discover a new camera was connected with EDSKD

327 views Asked by At

There's an event for camera being disconnected, but is there a way to detect that a new camera was connected to the system?

Or repeatedly asking for camera list is my best bet?

2

There are 2 answers

0
Tim On

Read the EDSDK documentation...

See EdsSetCameraAddedHandler

I can't give any examples as you have not provided any info about which language you are using.

0
AndiH On

Use: https://www.codeproject.com/Articles/688276/Canon-EDSDK-Tutorial-in-Csharp It is pretty old and as far as i know the developer doesn't support this anymore.

But it still works great for the most usecases. There is an event that fires if a camera gets added:

APIHandler = new CanonAPI();
APIHandler.CameraAdded += APIHandler_CameraAdded;

In the APIHandler_CameraAdded event you can change the camera settings or do whatever you want.