Forum posts for wmplayer.exe

Current playing item in Windows Media Player (wmplayer.exe ver. 12)

Been trying this for a while now.
All solutions I've seen on the net don't seem to work, specially the really simple way to do it.


WMPLib.WindowsMediaPlayer c = new WMPLib.WindowsMediaPlayer();
IWMPMedia i = (IWMPMedia)c.currentMedia;


c.currentMedia is always null.

It seems that new WMPLib.WindowsMediaPlayer(); is always creating a new instance of the Windows Media Player.
First I thought it was the fact that I was running visual studio as Administrator, but changing that did not help.

Seems I somehow have to connect to the running instance of wmplayer.exe but have unable to find a way to do that.

Btw. What I need is a full file url for the current playing song (or fullurl if streaming, but that's the least of my concerns now.)

View complete forum thread with replies

Other posts related to wmplayer.exe

See Related Forum Messages: Follow the Links Below to View Complete Thread

Current playing item in Windows Media Player (wmplayer.exe ver. 12)
Run more of one command in ShellExecute function (C++)
Play() function not working in R [duplicate]
C# string handling how get path and args from a string
Playback Complete In Windows Media Player
Executing a command when closing Batch file

What is the carbon footprint of your coffee?

Is it low? Is it high? Can this things really kill the planet Earth? Maybe the answer will surprise you. Maybe not.