Page 1 of 1

Multiple ActiveX, one always black

Posted: 29 Nov 2006 15:43
by cyberjaws
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

Posted: 01 Dec 2006 16:36
by Quovodis
turn off overlay with the ":no-overlay" option

Brilliant!

Posted: 03 Dec 2006 14:26
by cyberjaws
I added the no overlay as suggested and it seems to take care of the issue! Thank you for the suggestion.

Posted: 09 Dec 2006 11:42
by keypad
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: