Solved

how can I cause Tmediaplayer to loop continusly in an application

Posted on 2002-03-18
3
175 Views
Last Modified: 2012-05-04
How can I get Tmediaplayer to loop(play a midi endlessly) in an application?
0
Comment
Question by:annas
  • 2
3 Comments
 
LVL 3

Accepted Solution

by:
SteveWaite earned 60 total points
ID: 6878953
any help?
// OnNotify event
procedure TForm1.MediaPlayer1Notify(Sender: TObject);
begin
  with Sender as TMediaPlayer do
  begin
    if Mode = mpStopped
      then playitagain; // whatever
    { Note we must reset the Notify property to True }
    { so that we are notified the next time the }
    { mode changes }
    Notify := True;
  end;
end;


Regards,
Steve
0
 

Author Comment

by:annas
ID: 6879022
I'll have to hand to you Steve, worked perfectly!
paul :~>
0
 

Author Comment

by:annas
ID: 6879025
Well done Steve! I still havn't figured away to play it from memory yet. That will have to be the subject of a later question!
Paul
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Suggested Solutions

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…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
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…

785 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