Werbung: SecurityConsole.de verwaltet Ihre Computer mit Security Essentails aus der Cloud!
30 Tage kostenfrei testen und 20% Rabatt für Ihre Bestellung mit Promocode: WBF2685582
(Promocode gültig bis 31.12.2011)

Group:  English: Entertainment » microsoft.public.windowsmedia.sdk
Thread: Windows meadia player and ActiveMovie Window

HTVi
TV Discussion Newsgroups

Windows meadia player and ActiveMovie Window
David 6/15/2007 4:42:02 PM
Hello all,
I have a wmv file which has two video streams. When I play the file using
Windows Media Player a second window, “ActiveMovie Window,” is created to
show one of the video streams. Is it possible to control this window using
WMP sdk.

I am guessing the only way to control the window is by using WMP’s graph to
gain access to IVideoWindow to set the size and location of the window. Is
this possible or, does anyone know of another way to do this using WMP?

I have a simi-working DShow application that will play both streams allowing
me to have control of both windows.

My manager wants the wmv file to play using WMP, and wants me to control the
2nd window. What I would like to do is have WMP and the ActiveMovie Window
both be displayed on a C++ dialog. My hope is that I can get some good
information from this message board that will help me find out whether this
can be accomplished using WMP.
--
Best Regards

"Failure is the opportunity to begin again more intelligently" – Henry Ford
Re: Windows meadia player and ActiveMovie Window
"Alessandro Angeli" <nobody[ at ]nowhere.in.the.net> 6/15/2007 7:58:52 PM
From: "David"

[Quoted Text]
> My manager wants the wmv file to play using WMP, and
> wants me to control the 2nd window. What I would like to
> do is have WMP and the ActiveMovie Window both be
> displayed on a C++ dialog. My hope is that I can get some
> good information from this message board that will help
> me find out whether this can be accomplished using WMP.

WMP relies on the filter graph manager and the FGM only
knows how to manage the first video renderer, hence the only
way to manage more than one renderer is by skipping both WMP
and the FGM, which means a custom application that renders
the file or one that embeds WMP hacking its way to WMP's
internal graph. In any case, WMP itself will not support 2
video streams the way you want it to. You could also write a
custom trans-in-place filter that accepts RGB or YUV video
and only accepts to be connected to the VMR7 or VMR9: this
filter can have multiple inputs and outputs connected to the
VMR and can configure the VMR to display the streams side by
side by setting the target rectangles in the media type.
However it will not be easy to make it work in WMP and it
may not work at all with WMV files.

--
// Alessandro Angeli
// MVP :: DirectShow / MediaFoundation
// mvpnews at riseoftheants dot com
// http://www.riseoftheants.com/mmx/faq.htm


Re: Windows meadia player and ActiveMovie Window
David 6/18/2007 12:37:01 PM
Thank you Alessandro

--
Best Regards

"Failure is the opportunity to begin again more intelligently" – Henry Ford


Home | Search | Terms | Imprint Contact
Newsgroups Reader - provided by WiredBox.Net
Suche nach Orten, Städten, Postleitzahlen, Vorwahlen, Kfz-Kennzeichen