MediaPlayer1.DeviceType:= dtAutoSelect; MediaPlayer1.FileName := 'C:\test.avi'; MediaPlayer1.Display:=Panel1; MediaPlayer1.Open; MediaPlayer1.Play;