Stackoverflow icon indicating copy to clipboard operation
Stackoverflow copied to clipboard

Request: detect hardware button press with MediaFoundation (what still pin did in directshow)

Open eduramiba opened this issue 11 months ago • 0 comments

Dear mofo7777,

I am currently working on a project where I need to detect a hardware button press on an external camera to capture a photo. While I have a working example using DirectShow with the still pin, my application utilizes MediaFoundation to handle the webcam video stream.

I came across your insightful response on StackOverflow, which helped me understand the issue better. My device provides two streams: a 25fps video stream and a secondary 1fps stream.

However, I am encountering difficulties when trying to read samples from the 1fps stream. Currently, I only receive one sample flagged with MF_SOURCE_READERF_STREAMTICK, and no further samples are being processed.

Could you provide guidance or assistance on how to properly read and handle samples from the 1fps stream using MediaFoundation?

Of course, I am open to discussing compensation that reflects the effort and expertise required for this assistance.

Thank you! Eduardo

eduramiba avatar Jan 06 '25 19:01 eduramiba