Delphi Pages Forums  

Go Back   Delphi Pages Forums > Delphi Forum > General

Lost Password?

Thread Tools Display Modes
Old 04-24-2001, 11:10 PM
mcn mcn is offline
Junior Member
Join Date: Apr 2001
Posts: 2
Default How can i play a mpeg

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

Reply With Quote
Old 04-24-2001, 11:43 PM
Tavares Tavares is offline
Senior Member
Join Date: Feb 2001
Posts: 1,318
Default 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.


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

Eduardo Tavares
Reply With Quote

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump

All times are GMT. The time now is 02:44 AM.

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