I access the webcam via TIEMediaFoundationSourceReader. That works so far, only if I embed the form into my application the OnMediaFoundationNotify event will not fire. The Connect to the webcam exists. Does somebody has any idea ?
Unfortunately, no. I have integrated your demo from the folder MediaFoundationCam into my application and added the function Snapshot. The function saves the image in a stream. In my application, images of car spare parts are recorded and stored in the database. Your demo works fine. At first it worked in my application, but now I get a connect to the camera, but the event is not triggered.
PopupParent was the problem. I have assigned the window for the webcam the property PopupParent the active window. Now I've set PopupParent to Application.MainFrom and it works fine.