| Author |
Message |
HS Crow
Guest
|
Posted:
Thu Nov 24, 2005 5:30 pm Post subject:
SDK newbie seeks help in playing mp3 from disk |
|
|
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 |
|
|
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 |
|
|
| 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 |
|
 |
|
|
|
|