Solved

music play

Posted on 1998-12-18
3
178 Views
Last Modified: 2010-04-04
how mediaplayer works? What are all the functions and scripts?
0
Comment
Question by:venominheart
  • 2
3 Comments
 
LVL 3

Expert Comment

by:Matvey
ID: 1351808
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
0
 
LVL 1

Expert Comment

by:skatan187
ID: 1351809
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
0
 
LVL 1

Accepted Solution

by:
skatan187 earned 50 total points
ID: 1351810
..
0

Featured Post

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question