Solved

How to MediaPlayer1

Posted on 1998-12-26
4
323 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
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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Suggested Solutions

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
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…
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…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

831 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