Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DirectShow multi panel

Status
Not open for further replies.

sodiumpaul

Programmer
Jun 30, 2007
17
GB
I am building an application that uses multiple panels in a Form to playback diffrent media sources. This all works well except that when a panel loads a new file from disc the other windows block for about a second. The code I'm using is pretty standard. I suppose I need to load the files on their own thread. How do I do this with the following DirectX solution?

FilterGraph.RenderFile(MediaFile);

try
{

//BasicAudio = (IBasicAudio)BasicAudio;
VideoWindow = (IVideoWindow)FilterGraph;
VideoWindow.Owner = (int)this.Handle;
VideoWindow.WindowStyle = WS_CHILD | WS_CLIPCHILDREN;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top