Solved

how can I cause Tmediaplayer to loop continusly in an application

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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Run video youtube webbrowse 10 65
tidtcpserver connection lost handle 2 103
Dynamically Created Query 3 62
enhance the following code 3 37
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…
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…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

821 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