ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 TIEMediaFoundationSourceReader
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

Hermann

Germany
4 Posts

Posted - Jun 18 2018 :  10:22:10  Show Profile  Reply
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 ?

xequte

38182 Posts

Posted - Jun 18 2018 :  15:27:33  Show Profile  Reply
Hi

Are you able to create a very simple demo that shows the problem?



Nigel
Xequte Software
www.imageen.com
Go to Top of Page

Hermann

Germany
4 Posts

Posted - Jun 18 2018 :  17:00:14  Show Profile  Reply
Hi Nigel,

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.

Best regrads
Hermann
Go to Top of Page

Hermann

Germany
4 Posts

Posted - Jun 19 2018 :  09:58:17  Show Profile  Reply
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.
Go to Top of Page

xequte

38182 Posts

Posted - Jun 20 2018 :  00:53:39  Show Profile  Reply
Thanks for the update.



Nigel
Xequte Software
www.imageen.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: