|
|
|
date: Wed, 2 Jul 2008 02:18:40 -0700 (PDT),
group: microsoft.public.win32.programmer.directx.video
back
Re: VMR 9- Problem in setting video window?
From: "itekchandru"
> When i intended display video in VMR Windowed, I can
> display video in separate window. But When try to display
> video in my own application window, i could not connect
> video to that window. I referred the code from DX9
> documentation .
> How do i connect VMR9 - IVMRWindowlessControl9 interface
> to graph Builder ?
The graph manager only support 1 windowed video renderer. If
you have more than 1 renderer or you want to use a mode
other than windowed, you need to talk to the renderer
directly.
Also, you do not need windowless mode to display the video
in your own window. In windowed mode, you can either leave
the video renderer's window at its default, which creates a
separate top-level window, or you can make the window a
child window of your own, which will make it display the
video in your window. Windowsless has no window at all, not
even a child one, and the video is drawn directly into a
rectangle of your own window.
The following articles explain out to use both windowed and
windowless modes and how to make the window a child window
in windowed mode:
http://msdn.microsoft.com/en-us/library/ms787926(VS.85).aspx
http://msdn.microsoft.com/en-us/library/ms788090(VS.85).aspx
--
// Alessandro Angeli
// MVP :: DirectShow / MediaFoundation
// mvpnews at riseoftheants dot com
// http://www.riseoftheants.com/mmx/faq.htm
date: Wed, 2 Jul 2008 13:46:39 -0400
author: Alessandro Angeli
|
|