Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Scripting/Accessing an already running instance of WMP in C#?

0 views
Skip to first unread message

Stefán Jökull Sigurðarson

unread,
Sep 3, 2004, 10:51:28 AM9/3/04
to
I was wondering if it's possible through the SDK to get access to an already
running instance of WMP. Main reasons for this is for example to create an
application to get the currently playing info, make it skip a track, add to
playlist etc. without opening the WMP itself. I realize i can do alot of
this by sending my own WM_COMMAND's through the Win32 API but that doesn't
solve how to get the currently playing track, playlist info, time remaining
etc..

If anyone knows if this is possible through C# then i'd appreciate a point
in the right direction because i haven't found this in the documentation. I
don't mind if this is only possible on WMP10 or through the WMP10 SDK
somehow.

Thanks.
Stefán Jökull.


Jim Travis [ms]

unread,
Sep 3, 2004, 2:13:35 PM9/3/04
to
To do this requires creating a remoted instance of the Player control.
Microsoft only supports remoting using C++. If you're good at COM interop,
you may be able to get it to work. Unfortunately, I can't provide any more
guidance than that.

--
Jim Travis
Microsoft Corp.
Windows Media Player SDK

Download:
http://msdn.microsoft.com/library/default.asp?url=/downloads/list/winmedia.asp

Latest online:
http://msdn.microsoft.com/library/en-us/wmplay10/mmp_sdk/windowsmediaplayer10sdk.asp

Please do not send email directly to this alias as this alias is for
newsgroup purposes only. This posting is provided "AS IS" with no
warranties, and confers no rights. You assume all risk for your use. © 2004
Microsoft Corporation. All rights reserved.

"Stefán Jökull Sigurðarson" <stebet_r...@gmail.com> wrote in message
news:u82IAWck...@TK2MSFTNGP09.phx.gbl...

0 new messages