IE hosted ActiveX: how to render DirectShow EVR inside IE IE object

I am trying to display a video in Internet Explorer using a native ActiveX control.

I created an ActiveX control and a demo HTML page by creating the control with the OBJECT tag (and setting the width / height on it). I can call simple methods on this control via javascript, it works.

I also created a directshow work schedule to display the video. The plot contains an Enhanced Video Renderer (EVR) rendering filter.

But I am stuck: I cannot find a way to link these 2 technologies. In some MSDN docs, EVR is required to use WindowLess activation. But this activation requires hWnd and a rectangle inside hWnd. My ActiveX is hosted in Internet Explorer, how can I get the hWnd and render render at the correct position / size in this window?

Please note that I know how to get the absolute rectangle of an object in javascript and pass it to ActiveX. But can this rectangle move with the scroll bar? And how do I get that damn hWnd?

EDIT

It seems ActiveX should implement the IOleInPlaceObjectWindowless interface, which has SetObjectRects methods called by the host, and should query the host for the IOleWindow interface, which has a GetWindow method that returns hWnd.

EDIT 2

It seems all you have to do is implement IComponent to restore the ISite host interface from which you can request any service you need.

+3
html internet-explorer video activex


source to share


No one has answered this question yet

Check out similar questions:

446
How can I avoid ampersands in XML so that they appear as objects in HTML?
4
Delphi: How to use windowless controls?
2
ActiveX HWND, DirectX WindowLess mode
1
Detecting IE container from ActiveX Control
1
ActiveX Control works in a separate window other than IE
1
How to use DirectX / DirectDraw to speed up animation of an active windowless ActiveX control
0
Embed WTL Application in ATL ActiveX Control
0
play videos from different sources in WPF
0
IE Permissions Required for ActiveX Controls
0
GPF after uninstalling a windowless ActiveX control from the host application



All Articles
Loading...
X
Show
Funny
Dev
Pics