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 to get playing file URL from DSP plugin

HTVi
TV Discussion Newsgroups

How to get playing file URL from DSP plugin
mandelberg 10/25/2008 7:44:00 PM
I'm developing a DSP plugin that need to be loaded into embedded WMP11.
I'm using WMP SDK11 (not Media Foundation).
Is there a way to get the playing file URL within the plugin code?
Re: How to get playing file URL from DSP plugin
"Neil Smith [MVP Digital Media]" <neil[ at ]nospam.com> 10/26/2008 6:57:01 PM
On Sat, 25 Oct 2008 12:44:00 -0700, mandelberg
<mandelberg[ at ]discussions.microsoft.com> wrote:

[Quoted Text]
>I'm developing a DSP plugin that need to be loaded into embedded WMP11.
>I'm using WMP SDK11 (not Media Foundation).
>Is there a way to get the playing file URL within the plugin code?


If you can get a reference to the Player object (which you should, as
it's hosting your plugin) then player.currentMedia is a Media object
which contains those details, including currentMedia.URL

HTH
Cheers - Neil
------------------------------------------------
Digital Media MVP : 2004-2008
http://mvp.support.microsoft.com/mvpfaqs
Re: How to get playing file URL from DSP plugin
mandelberg 10/27/2008 10:28:45 AM
Which interface should I usefor that?
IMediaObject, IWMPMediaPluginRegistrar, IWMPPlugin and IWMPPluginEnable are
not supporting this functionality.


"Neil Smith [MVP Digital Media]" wrote:

[Quoted Text]
> On Sat, 25 Oct 2008 12:44:00 -0700, mandelberg
> <mandelberg[ at ]discussions.microsoft.com> wrote:
>
> >I'm developing a DSP plugin that need to be loaded into embedded WMP11.
> >I'm using WMP SDK11 (not Media Foundation).
> >Is there a way to get the playing file URL within the plugin code?
>
>
> If you can get a reference to the Player object (which you should, as
> it's hosting your plugin) then player.currentMedia is a Media object
> which contains those details, including currentMedia.URL
>
> HTH
> Cheers - Neil
> ------------------------------------------------
> Digital Media MVP : 2004-2008
> http://mvp.support.microsoft.com/mvpfaqs
>
Re: How to get playing file URL from DSP plugin
"Neil Smith [MVP Digital Media]" <neil[ at ]nospam.com> 10/27/2008 10:32:28 PM
If the IWMPMedia interface is present, it's derived from WMP, so it
should expose the sourceURL property, and the getItemInfo method :

http://msdn.microsoft.com/en-us/library/bb249010.aspx

It's not obvious from the documentation (at least to me) if that's a
DirectX IMedia object though, as I couldn't find a specific interface
by that name in the docs. Probably Chris or Allesandro would know.

HTH
Cheers - Neil

On Mon, 27 Oct 2008 03:28:45 -0700, mandelberg
<mandelberg[ at ]discussions.microsoft.com> wrote:

[Quoted Text]
>Which interface should I usefor that?
>IMediaObject, IWMPMediaPluginRegistrar, IWMPPlugin and IWMPPluginEnable are
>not supporting this functionality.
>
>
>"Neil Smith [MVP Digital Media]" wrote:
>
>> On Sat, 25 Oct 2008 12:44:00 -0700, mandelberg
>> <mandelberg[ at ]discussions.microsoft.com> wrote:
>>
>> >I'm developing a DSP plugin that need to be loaded into embedded WMP11.
>> >I'm using WMP SDK11 (not Media Foundation).
>> >Is there a way to get the playing file URL within the plugin code?
>>
>>
>> If you can get a reference to the Player object (which you should, as
>> it's hosting your plugin) then player.currentMedia is a Media object
>> which contains those details, including currentMedia.URL
>>
>> HTH
>> Cheers - Neil
>> ------------------------------------------------
>> Digital Media MVP : 2004-2008
>> http://mvp.support.microsoft.com/mvpfaqs
>>
------------------------------------------------
Digital Media MVP : 2004-2008
http://mvp.support.microsoft.com/mvpfaqs
Re: How to get playing file URL from DSP plugin
"Alessandro Angeli" <nobody[ at ]nowhere.in.the.net> 10/27/2008 11:28:32 PM
From: "Neil Smith [MVP Digital Media]"

[Quoted Text]
> It's not obvious from the documentation (at least to me)
> if that's a DirectX IMedia object though, as I couldn't
> find a specific interface by that name in the docs.
> Probably Chris or Allesandro would know.

I don't know about Chris or ALLeSandro, but ALeSSandro :-)
thinks that it is not possible. A DSP plugin is a DMO
(IMediaObject) and/or MFT (IMFTransform + IMFGetService)
that is registered with WMP as a plugin and implements
IWMPPlugin and IWMPPluginEnable. None of the interfaces ever
receives a reference to the player object. The only
interesting possibility is IWMPPlugin::AdviseWMPServices(),
which receives an IWMPServices reference that may be
queryable for other WMP interfaces (I don't think that is
the case, but I never tried so I don't know for sure).

--
// 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