Scripting/Accessing an already running instance of WMP in C#
WMPTalk.com Forum Index WMPTalk.com
Discuss Windows Media Player
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web wmptalk.com
Scripting/Accessing an already running instance of WMP in C#

 
Post new topic   Reply to topic    WMPTalk.com Forum Index -> SDK
Author Message
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# Reply with 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.

Back to top
Jim Travis [ms]
Guest





Posted: Fri Sep 03, 2004 10:13 pm    Post subject: Re: Scripting/Accessing an already running instance of WMP i Reply with quote

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.

Back to top
 
Post new topic   Reply to topic    WMPTalk.com Forum Index -> SDK All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



Microsoft Office Forum New Topics
Powered by phpBB