Re: Writing a plug in to get the path of the song playing

Tech-Archive recommends: Fix windows errors by optimizing your registry



The answer remains the same as before !

If you're having trouble understanding the translation of javascript
ot VB syntax, probably reading this article will help :

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnwmt/html/playingdigitalmediainavisualbasicnetapplication.asp

I'm guessing it would be similar to
player.currentMedia.getItemInfoByType "SourceURL", "", 0
but really it would take you 5 minutes to find out for sure.

HTH
Cheers - Neil

On Sun, 16 Apr 2006 04:21:01 -0700, ThatSome1
<ThatSome1@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:

Ok, ive have got WMPSDK.
Put in WMP.dll into VB - and using it
renamed it to Player
Now what can i type in to get a msgbox to say what is playing?

"ThatSome1" wrote:

Im not sure what you mean by player or media server. What I would like is, on
a single pc, when they play a track in WMP, i would like to be able to get
the track path. Eg

C:\Documents and Settings\James\My Documents\My Music\American Hi Fi\The Art
Of Losing\05 Nothing Left To Lose.mp3

Tho thanks for the quick come back!





"Neil Smith [MVP Digital Media]" wrote:

On Sat, 15 Apr 2006 05:35:01 -0700, ThatSome1
<ThatSome1@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:

How would you go about doing this?
Writing an plug in toget the path of the song which is playing/paused?
Im a VBer........

In what - the player or the media server for a chosen client ?

The player has a Media object property for this, SourceURL, which you
could access as for example

player.currentMedia.getItemInfoByType("SourceURL", "", 0);

Probably you'd modify that (it's javascript syntax) for use in VB.

Cheers - Neil


.



Relevant Pages

  • Re: Little Help with JavaScript
    ... Richard Cornford wrote: ... structure is a valid JSON object data but it is not JavaScript syntax ... syntax error. ...
    (comp.lang.javascript)
  • Re: Little Help with JavaScript
    ... There are plenty of constructs that "syntax ... literal but put it in an arguments list and you have a syntax error. ... - is still a subset of javascript syntax regardless ... and they are forbidden from starting with an opening brace. ...
    (comp.lang.javascript)
  • Re: who came up with JavaScript language syntax?
    ... netscape came up with javascript and its syntax. ... note xhtml unlike html is case senstive. ... > What sick saddistic person came up with the JavaScript language syntax? ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: embed media player 9 in a html file and display it on pocket p
    ... After I installed wmnall.exe on my PPC, ... >1) how to use javascript to add parameters ... Let's assume you used an HTML ID of 'Player' for your embedded media ... you also need to load the WM ActiveX control for PPC which isn't ...
    (microsoft.public.pocketpc.multimedia)
  • Re: Opening in a web site
    ... Which would open the stand alone player. ... you'd have a small piece of javascript instead: ... In other words, just a basic window ... >> code and it should work fine with the newer embedding code above. ...
    (microsoft.public.windowsmedia)