Expiring Today—Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

How to MediaPlayer1

Posted on 1998-12-26
4
Medium Priority
?
332 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 17

Accepted Solution

by:
inthe earned 40 total points
ID: 1353098
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
ID: 1353099
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
ID: 1353100
Hello inthe,

My e-mail is remi@enschede.com

Thanks,
Vincent
0
 
LVL 17

Expert Comment

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

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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 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…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…
Suggested Courses

718 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