unit Main;

interface

uses
  SysUtils, Windows, Messages, Classes, Graphics, Controls,
  Forms, Dialogs, StdCtrls, ExtCtrls, MPlayer;

type
  TForm1 = class(TForm)
    DisplayScreen: TPanel;
    MediaPlayer1: TMediaPlayer;
    RadioGroup1: TRadioGroup;
    RadioButton1: TRadioButton;
    RadioButton2: TRadioButton;
    RadioButton3: TRadioButton;
    RadioButton4: TRadioButton;
    RadioButton5: TRadioButton;
    ImpInfo: TButton;
    procedure ImpInfoClick(Sender: TObject);
    procedure FormCreate(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  Form1: TForm1;

implementation

{$R *.DFM}

procedure TForm1.ImpInfoClick(Sender: TObject);
begin
 if RadioButton1.Checked then
  MediaPlayer1.FileName := 'c:\win95\info\rok1.avi';
 if RadioButton2.Checked then
  MediaPlayer1.FileName := 'c:\win95\info\rok2.avi';
 if RadioButton3.Checked then
  MediaPlayer1.FileName := 'c:\win95\info\rok3.avi';
 if RadioButton4.Checked then
  MediaPlayer1.FileName := 'c:\win95\info\rok4.avi';
 if RadioButton5.Checked then
  MediaPlayer1.FileName := 'c:\win95\info\rok5.avi';

 MediaPlayer1.Open;
 MediaPlayer1.DisplayRect := Rect(0,0,
               DisplayScreen.Width,DisplayScreen.Height);
 MediaPlayer1.Play;                
end;

procedure TForm1.FormCreate(Sender: TObject);
begin
 MediaPlayer1.Display := DisplayScreen; 
end;

end.