unit Unit1;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, ExtCtrls, MPlayer;
type
TForm1 = class(TForm)
MP: TMediaPlayer;
LCD: TPanel;
Timer1: TTimer;
procedure FormCreate(Sender: TObject);
procedure Timer1Timer(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
{$R *.dfm}
procedure TForm1.FormCreate(Sender: TObject);
begin
MP.FileName := ExtractFilePath(Application.ExeName)+'ZSM.avi';
MP.Open;
MP.Play;
end;
procedure TForm1.Timer1Timer(Sender: TObject);
begin
if MP.Length = MP.EndPos then
MP.Position := MP.StartPos;
MP.Play;
end;
end.
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, ExtCtrls, MPlayer;
type
TForm1 = class(TForm)
MP: TMediaPlayer;
LCD: TPanel;
Timer1: TTimer;
procedure FormCreate(Sender: TObject);
procedure Timer1Timer(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
{$R *.dfm}
procedure TForm1.FormCreate(Sender: TObject);
begin
MP.FileName := ExtractFilePath(Application.ExeName)+'ZSM.avi';
MP.Open;
MP.Play;
end;
procedure TForm1.Timer1Timer(Sender: TObject);
begin
if MP.Length = MP.EndPos then
MP.Position := MP.StartPos;
MP.Play;
end;
end.
No comments:
Post a Comment