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: How is WMRenderer created

HTVi
TV Discussion Newsgroups

How is WMRenderer created
martomartasco[ at ]hotmail.com 5/3/2007 4:57:47 PM
I am Detouring WMP and when I play a .wmv file from a URL the graph
that is created has the "undocumented" WMRenderer Source Filter. How
is this object created? Thru CoCreateInstance?

Anyone know what the CLSID is? I can't find it in the registry.

Furthurmore, is there anyway to find out what URL was specified? I
believe I can get the URL from the WMP Player automation interface,
but I'd rather get the URL from the DirectShow level.


Regards.

Re: How is WMRenderer created
"Alessandro Angeli" <nobody[ at ]nowhere.in.the.net> 5/3/2007 6:03:00 PM
From: "martomartasco[ at ]hotmail.com"

[Quoted Text]
> I am Detouring WMP and when I play a .wmv file from a URL
> the graph that is created has the "undocumented"
> WMRenderer Source Filter. How is this object created?
> Thru CoCreateInstance?
>
> Anyone know what the CLSID is? I can't find it in the
> registry.

You can ask a filter for its CLSID by calling
IBaseFilter::GetClassID(). Of course, the filter can lie or
not have a valid CLSID if it is not a registered class.

The WMRenderer filter is WMP's internal source filter that
wraps WMF's WMReader object in decompressed mode. It is not
a registered class and there is no way to create it outside
of WMP.

> Furthurmore, is there anyway to find out what URL was
> specified? I believe I can get the URL from the WMP
> Player automation interface, but I'd rather get the URL
> from the DirectShow level.

Have you tried to call IFileSourceFilter::GetCurFile() on
the source filter?


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


Re: How is WMRenderer created
martomartasco[ at ]hotmail.com 5/3/2007 8:03:51 PM
On May 3, 11:03 am, "Alessandro Angeli" <nob...[ at ]nowhere.in.the.net>
wrote:
[Quoted Text]
> From: "martomarta...[ at ]hotmail.com"
>
> > I am Detouring WMP and when I play a .wmv file from a URL
> > the graph that is created has the "undocumented"
> > WMRenderer Source Filter. How is this object created?
> > Thru CoCreateInstance?
>
> > Anyone know what the CLSID is? I can't find it in the
> > registry.
>
> You can ask a filter for its CLSID by calling
> IBaseFilter::GetClassID(). Of course, the filter can lie or
> not have a valid CLSID if it is not a registered class.
>
> The WMRenderer filter is WMP's internal source filter that
> wraps WMF's WMReader object in decompressed mode. It is not
> a registered class and there is no way to create it outside
> of WMP.
>
> > Furthurmore, is there anyway to find out what URL was
> > specified? I believe I can get the URL from the WMP
> > Player automation interface, but I'd rather get the URL
> > from the DirectShow level.
>
> Have you tried to call IFileSourceFilter::GetCurFile() on
> the source filter?
>

The filter doesn't expose that interface. Oh well.

Do you know how WMP reads the stream from the URL?

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


Re: How is WMRenderer created
"Alessandro Angeli" <nobody[ at ]nowhere.in.the.net> 5/3/2007 8:21:15 PM
From: "martomartasco[ at ]hotmail.com"

[Quoted Text]
> Do you know how WMP reads the stream from the URL?

If you mean what component is used to receive/parse the ASF
stream, that should be the WMReader object from the WMF
runtime. If you mean how WMP passes the URL to the filter to
be opened, I have no idea: the filter is internal and can
provide any kind of custom interfaces.

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


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