- Add TMediaPlayer to your form
- Add TMediaPlayerControl to your form
- Add TButton to your form
- Duoble click on your button
- Insert this between begin and end tag
if MediaPlayer1.Media <> nil then
begin
MediaPlayer1.Play;
end;
- Change
C:\earth.avi
to the location of your avi file
Result: