Solved

how can I cause Tmediaplayer to loop continusly in an application

Posted on 2002-03-18
3
173 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

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

705 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

12 Experts available now in Live!

Get 1:1 Help Now