Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to interact with Windows Media Player in C#

Tags:

People also ask

How do I link to a Windows Media Player?

What to Know. In Windows Media Player 12, press Ctrl+1 to open the Library, or select Go to Library. Next, select File > Open URL > copy song URL to Windows Clipboard > paste song URL in Open URL dialogue box > OK.

How do I start Windows Media Player from command prompt?

Just press the Windows key + R to open the Run box. Type wmplayer and hit Enter. This will also open the Windows Media Player quickly.

What is Role of Media Player in Window operating system?

Windows Media Player (WMP) is a discontinued media player and media library application developed by Microsoft that is used for playing audio, video and viewing images on personal computers running the Microsoft Windows operating system, as well as on Pocket PC and Windows Mobile-based devices.


I am looking for a way to interact with a standalone full version of Windows Media Player.
Mostly I need to know the Path of the currently played track.

The iTunes SDK makes this really easy but unfortunately there really isn't any way to do it with Windows Media Player, at least not in .Net(C#) without any heavy use of pinvoke, which I am not really comfortable with.

Thanks

Just to clearify: I don't want to embedded a new instance of Windows Media Player in my app, but instead control/read the "real" full version of Windows Media Player, started seperatly by the user