Multiple ActiveX, one always black

All you've ever wanted to know about the ActiveX, Mozilla plugins, the web interface and various PHP extensions
cyberjaws
New Cone
New Cone
Posts: 2
Joined: 28 Nov 2006 19:58

Multiple ActiveX, one always black

Postby cyberjaws » 29 Nov 2006 15:43

Hello All!

I am writing a C# app that uses multiple activeX controls to display different video sources, and I noticed that when I start the App, there is always one video that remains black, while the others work perfectly. I thought this might be an ActiveX issue (which wouldn't suprise me at all) so I browsed the forums and found a wrapper for the libvlc.dll that was very thorough, but upon adding it to my solution, I found that the result was the same!

After more inspection I found that it was always the first window that was going black, and would happen whenever it something moved on top of it, or its drawing surface was resized / moved. So I worked up a little test, I created a 1 second mp4 low res video, and had my app create a non visible form that loops the video over and over before I create all the real video panels that I need in the app. Wala! All five videos now work just fine, as long as I keep the dummy first video panel alive.

I was curious if anyone else was seeing this behavior. I am using 8.5 on WinXP, latest drivers for video and DirectX. I have tried the above method for local and streaming media, both with the same effect.

Cheers

Quovodis
Cone that earned his stripes
Cone that earned his stripes
Posts: 271
Joined: 16 Jun 2004 11:13
Location: Cork, Ireland

Postby Quovodis » 01 Dec 2006 16:36

turn off overlay with the ":no-overlay" option

cyberjaws
New Cone
New Cone
Posts: 2
Joined: 28 Nov 2006 19:58

Brilliant!

Postby cyberjaws » 03 Dec 2006 14:26

I added the no overlay as suggested and it seems to take care of the issue! Thank you for the suggestion.

keypad
Blank Cone
Blank Cone
Posts: 17
Joined: 27 Sep 2006 17:50

Postby keypad » 09 Dec 2006 11:42

hello. I'm a delphi programmer.
The only way i found to resolve this is to put one activex in a panel which has the enabled option set to false and the other one in a second panel with enabled set to false :wink:


Return to “Web and scripting”

Who is online

Users browsing this forum: No registered users and 3 guests