Link to home
Start Free TrialLog in
Avatar of venominheart
venominheart

asked on

music play

how mediaplayer works? What are all the functions and scripts?
Avatar of Matvey
Matvey

If you want to play a fie, write it in the FileNeme property. If this is a standard multimedia file, it'll be playd automatically if you set the AutoOpen property to true.
If you want to play an audio CD, set the DeviceType property to dtCDAudio.

I can send you an exmple of a CD player application I wrote. Or if you tell what exctly you want to do, I can send you some other example.

You can also look at these:

http://torry.rimini.com/samples/samples/abcdplay.zip
http://torry.rimini.com/samples/samples/looper.zip
http://torry.rimini.com/samples/samples/midiroll.zip
delphi (3) helpfile.hlp:
search "multimedia devices"
"MCI" . etc...

to play a file:
mediaplayer1.filename:="c:\file.mid";
mediaplayer1.open;
mediaplayer1.play;

to stop
mediaplayer1.stop;
mediaplayer1.close; {device must be open}
// if mediaplayer1.filename <> '' then mediaplayer1.close;


mediaplayer1.devicetype:=dtAutoSelect
                          dtcdaudio
                            ...

for use with for example dtcdaudio: mediaplayer.next;


AND SO oN........

SkAtAn
ASKER CERTIFIED SOLUTION
Avatar of skatan187
skatan187

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial