Stefįn Jökull Siguršarson
Guest
|
Posted:
Fri Sep 03, 2004 6:51 pm Post subject:
Scripting/Accessing an already running instance of WMP in C# |
|
|
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]
Guest
|
Posted:
Fri Sep 03, 2004 10:13 pm Post subject:
Re: Scripting/Accessing an already running instance of WMP i |
|
|
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_removethis@gmail.com> wrote in message
news:u82IAWckEHA.1656@TK2MSFTNGP09.phx.gbl...
| Quote: | 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.
|
|
|