How to MediaPlayer1

How can you see the following things with the MediaPlayer1 component of Delphi 3.
1. How to show what track is playing?
2. How to show total time of a cd?
3. How to show total track time?

Thanks and Merry Christmas,
Vincent
VincentgAsked:
Who is Participating?
 
intheConnect With a Mentor Commented:
leave your email address i'll mail you a project that shows you how to do all this it was in this months pcplus mag
Regards Barry
0
 
teechongCommented:
I assume you're referring to audio cd.

1) How to show what track is playing?
   mci_TMSF_Track(MediaPlayer1.Position);
2) How to show total time of a cd?
   total_minutes := mci_TMSF_Track(MediaPlayer1.Length);
   total_seconds := mci_TMSF_Minute(MediaPlayer1.Length);
3) How to show total track time
   track_minutes := mci_TMSF_Track(MediaPlayer1.TrackLength[mci_TMSF_Track(MediaPlayer1.Position)]);
   track_seconds := mci_TMSF_Minute(MediaPlayer1.TrackLength[mci_TMSF_Track(MediaPlayer1.Position)]);


0
 
VincentgAuthor Commented:
Hello inthe,

My e-mail is remi@enschede.com

Thanks,
Vincent
0
 
intheCommented:
i've mailed it you you should get it soon
Good luck
 Barry
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.