Delphi Pages Forums

Delphi Pages Forums (http://www.delphipages.com/forum/index.php)
-   General (http://www.delphipages.com/forum/forumdisplay.php?f=2)
-   -   How can i play a mpeg (http://www.delphipages.com/forum/showthread.php?t=23972)

mcn 04-24-2001 11:10 PM

How can i play a mpeg
 
How can i play a mpeg file with tmediaplayer in full screen?

maric

Tavares 04-24-2001 11:43 PM

RE: How can i play a mpeg
 
Providing the Windows MMSystem layer has a MPEG decoder installed, you can easily use the MultiMedia play a MPEG file by setting the filename to the path of the MPEG file.

Example:

procedure TForm1.Button1Click(Sender: TObject);
begin
MediaPlayer1.Filename := 'C:\DownLoad\rsgrow.mpg';
MediaPlayer1.Open;
MediaPlayer1.Display := Panel1;
MediaPlayer1.DisplayRect := Panel1.ClientRect;
MediaPlayer1.Play;
end;




Regards,
Eduardo Tavares
www.tavareswebsite.cjb.net


All times are GMT. The time now is 12:40 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2019, vBulletin Solutions, Inc.