locked
Best way to access song in WMP RRS feed

  • Question

  • I've looked up how to read the songname of WMP and there seem to be 2 ways :

    1. A pretty straight way:

    Get a WMP9 plugin here that will put your current song name on the titlebar of the WMP window, and use FindWindow P/Invoke to get the window and get the song name. It shoud work, though a little tricky.

    Check here for more details.

    Windows Media Player 9 Series Blogging Plug-in

    2. A much more complex way:

    Since your application and the WMP will be different processes, your scenario requires some kind of inter-process-communication (IPC). And .NET offers Remoting for this purpose.

    Below are some useful information:

    How to interact with Windows Media Player in C#

    Windows Media Player Remoting in C#

     

    Now my question is, which way is better, and why? Thanks in advance

    Regards,

    Dylan Meeus

     

     


    0x2B |~ 0x2B Blog : www.it-ca.net/blogdylan
    • Moved by Leo Liu - MSFT Monday, September 5, 2011 7:26 AM Moved for better support. (From:Visual C# General)
    Thursday, September 1, 2011 10:42 PM

All replies

  • What kind of application are you writing? Win or Web?

    Normally people will play the song using C# but I have not heard of someone want to access the song that is in WMP list.

    You might want to rethink again what are you trying to achieve.

    chanmm


    chanmm
    Friday, September 2, 2011 3:54 PM
  • you know on MSN, when the song curently playing is being showed?
    I want to achieve that in Skype :)

    Regards,

    Dylan Meeus


    0x2B |~ 0x2B Blog : www.it-ca.net/blogdylan
    Friday, September 2, 2011 8:59 PM
  • Probably you want to take a look at this.

    http://msdn.microsoft.com/en-us/library/dd873650(VS.85).aspx

    chanmm


    chanmm
    Saturday, September 3, 2011 6:37 AM