SDK newbie seeks help in playing mp3 from disk
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
SDK newbie seeks help in playing mp3 from disk

 
Post new topic   Reply to topic    WMPTalk.com Forum Index -> SDK
Author Message
HS Crow
Guest





Posted: Thu Nov 24, 2005 5:30 pm    Post subject: SDK newbie seeks help in playing mp3 from disk Reply with quote

I've imported the WMP ActiveX Control into Delphi and its working
fine; I can view various properties of the control when my app is
running.
I want to use it to play audio files from disk, but on browsing the
SDK documentation I can only see information for playing files from
playlists or from the library, neither of which interest me. I'd be
grateful for a pointer on how to get started with playing an audio
file from a local disk. i.e some pseudo code would be fine, unless
you're also a Delphi coder.

I'm new to using COM/ActiveX, so there's quite a learning curve here
for me.

Back to top
Alessandro Angeli [MVP::D
Guest





Posted: Thu Nov 24, 2005 9:30 pm    Post subject: Re: SDK newbie seeks help in playing mp3 from disk Reply with quote

HS Crow wrote:

Quote:
I've imported the WMP ActiveX Control into Delphi and its
working fine; I can view various properties of the
control when my app is running.
I want to use it to play audio files from disk, but on
browsing the SDK documentation I can only see information
for playing files from playlists or from the library,
neither of which interest me. I'd be grateful for a
pointer on how to get started with playing an audio file
from a local disk. i.e some pseudo code would be fine,
unless you're also a Delphi coder.

http://msdn.microsoft.com/library/en-us/wmplay10/mmp_sdk/playerurl.asp

or

http://msdn.microsoft.com/library/en-us/wmplay10/mmp_sdk/playercurrentmedia.asp

URL can also be a file path, local or UNC, absolute or
relative.


--
// Alessandro Angeli
// MVP :: Digital Media
// a dot angeli at psynet dot net
Back to top
HS Crow
Guest





Posted: Thu Nov 24, 2005 9:30 pm    Post subject: Re: SDK newbie seeks help in playing mp3 from disk Reply with quote

Quote:
http://msdn.microsoft.com/library/en-us/wmplay10/mmp_sdk/playerurl.asp

URL can also be a file path, local or UNC, absolute or
relative.

Thanks again. I had noticed this property at one point but couldn't
relocate it. I can now play mp3, wma & m4a (AAC) files and also
protected wma. As I was hoping, the Delphi Component/ ActiveX control
hides the COM plumbing :)

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