Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

How to MediaPlayer1

Posted on 1998-12-26
4
Medium Priority
?
339 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 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
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…
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…
Loops Section Overview

916 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