Главная страница | назад





Article #17071: Endless looping with the TMediaPlayer

 Question and Answer Database
FAQ2071D.txt Endless looping with the TMediaPlayer
Category :VCL
Platform :All
Product :All 32 bit
Question:
How can I get an AVI to loop continually with the TMediaPlayer?
Answer:
The following example demonstrates looping an AVI file by taking
advantage of the MediaPlayers Notify event to play the AVI file
again... and again... and again!
Example:
procedure TForm1.MediaPlayer1Notify(Sender: TObject);
begin
with MediaPlayer1 do
if NotifyValue = nvSuccessful then begin
Notify := True;
Play;
end;
end;
7/16/98 4:31:28 PM

Last Modified: 01-SEP-99