Multiple ActiveX, one always black
Posted: 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
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