Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I stretch an avi file to fill my panel? 1

Status
Not open for further replies.

BubbaDave

Programmer
Dec 30, 2000
23
0
0
US
Hi,
I am writing a simple video viewer. I am using the TMediaPlayer component to play the videos. I can open and play one or more files, but the panel I am using to display them is usually larger than the movie. I would like to allow the user to choose between original size, full panel, or full screen mode for the video. Can anyone tell me how this is done?
Thanks,
Bubba
 
try this....
MediaPlayer1->DisplayRect = Rect(0, 0, Form2->Panel1
->Width, Form2->Panel1->Height);

 
Thanks, it worked like charm...
Now, all I have to figure out is how to change playback speed. Any ideas?
Bubba
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top