how to put a video clip in a form and make it run

I would like to have a form with a video clip, how can I do that?
Oldany PerezAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

edeyCommented:
The TMediaPlayer plays some movie formats.


GL
Mike
0
rwilson032697Commented:
Put a panel and a TMediaPlayer on the form. Set the Mediaplayer to play on the panel.

Then do this:

MediaPlayer.Filename := 'MyAVI.avi';
MediaPLayer.Play;

Cheers,

Raymond.

PS: Worth more than a point, don't you think? :-)
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
bryan7Commented:
use TMediaPlayer component
drop a Panel on the form

then do

with mediaplayer1 do
 begin
filename:= 'c:\myavi.avi';
open;
play;
end;

you can also view the video in the panel if you assign the property.. (can't remember which one now since i don't have delphi here) of the mediaplayer to be viewed in the panel, you can do so from the object inspector.

bryan
0
bryan7Commented:
ouch, you answered 1 minute before.. hehhe.
0
rwilson032697Commented:
Oops, forgot the 'open' - thanks bryan :-)

MediaPlayer.Filename := 'MyAVI.avi';
MediaPlayer.Open;
MediaPLayer.Play;

Cheers,

Raymond.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Delphi

From novice to tech pro — start learning today.