Specifies the display window for an multimedia device that uses a window for output.
property Display: TWinControl;
=============================================
var sWinDir: String;
iLength: Integer;
begin
// Initialize Variable
iLength := 255;
setLength(sWinDir, iLength);
iLength := GetWindowsDirectory(PChar(sWinDir), iLength);
setLength(sWinDir, iLength);
With MediaPlayer1 do begin
Filename := sWinDir + '/Clock.avi'
//specify video file
DeviceType := dtAVIVideo
//set Device compatibility to AVI
<font color=red> Display := Panel1
//Set display device to a TPanel</font>
Open;
Play;
end;
end;