AForge.NET

  :: AForge.NET Framework :: Articles :: Forums ::

Multiple programs one only wants camera capture button event

Forum to discuss AForge.NET Framework, its features, API, how-tos, etc.

Multiple programs one only wants camera capture button event

Postby Grandpa-G » Wed Jan 09, 2019 11:28 pm

I have a program that is to monitor the camera which has a hardware capture button. I have written a program based on one of the samples and it works great, the event fires and I know when the camera button was pressed. However, if another program wants to get the video from camera at the same time, it errors, I assume because the monitor program is running.

My question is, is there a way to get just the capture button pressed event and not preventing another program from getting the video stream?
Grandpa-G
 
Posts: 1
Joined: Wed Jan 09, 2019 11:24 pm

Re: Multiple programs one only wants camera capture button e

Postby andrew.kirillov » Thu Jan 10, 2019 8:08 am

Not sure you will manage to do that. Camera is busy by another application, so yours will not get access to it.

Definitely AForge.NET Framework does not have support for this. But you may try learning Direct Show API.
With best regards,
Andrew


Interested in supporting AForge.NET Framework?
User avatar
andrew.kirillov
Site Admin, AForge.NET Developer
 
Posts: 3379
Joined: Fri Jan 23, 2009 9:12 am
Location: UK




Return to AForge.NET Framework