Solved

Cd player number of tracks

Posted on 1998-04-10
4
121 Views
Last Modified: 2010-04-06
I wish to know how to display the number of tracks on a cd and the total time for each of those tracks.
This question has been bothering me for weeks.
0
Comment
Question by:cando
  • 2
4 Comments
 
LVL 2

Expert Comment

by:rene100
ID: 1361365
Hi cando

simply use the TMediaPlayer.tracks property to get the number of tracks and the TMediaPlayer.TrackLength(NumberOfTrack) property to get the length of a track

hope this helps

rene100
0
 

Expert Comment

by:sabog7
ID: 1361366
cando
why dont u try http://www.swiftsoft.de/mmtools.html...
i assure u more than ur points it will help u a lot......
 
0
 

Author Comment

by:cando
ID: 1361367
I know about the MediaPlayer.tracks and tracklength, I haven't been able to get those to work, If some one could give me an example it would be very helpfull.
0
 
LVL 2

Accepted Solution

by:
rene100 earned 200 total points
ID: 1361368
hi cando

you have first to select the type of device you wants to use, in your case set the mediaplayer.devicetype to dtCDAudio (or you can try dtAutoSelect, but I had problems with that)
then you can either set the AutoOpen property to true or open the device with MediaPlayer.open, i.e. in the formCreate event.
you now should be able to get the tracks/tracklength with the solution above.
remember to close the device with MediaPlayer.close when you terminate the program

regards
rene100
0

Featured Post

Active Directory Webinar

We all know we need to protect and secure our privileges, but where to start? Join Experts Exchange and ManageEngine on Tuesday, April 11, 2017 10:00 AM PDT to learn how to track and secure privileged users in Active Directory.

Question has a verified solution.

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

Suggested Solutions

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

828 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