Solved

How to MediaPlayer1

Posted on 1998-12-26
4
317 Views
Last Modified: 2012-05-04
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
0
Comment
Question by:Vincentg
  • 2
4 Comments
 
LVL 17

Accepted Solution

by:
inthe earned 10 total points
Comment Utility
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
 

Expert Comment

by:teechong
Comment Utility
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
 

Author Comment

by:Vincentg
Comment Utility
Hello inthe,

My e-mail is remi@enschede.com

Thanks,
Vincent
0
 
LVL 17

Expert Comment

by:inthe
Comment Utility
i've mailed it you you should get it soon
Good luck
 Barry
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
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…
This video discusses moving either the default database or any database to a new volume.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

772 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now