Autor Beitrag
Ryazor
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 29



BeitragVerfasst: Di 04.03.03 18:24 
Hallöchen nochmal :D
Ich würde gerne ein Video, welches ich mit der TMediaPlayer Komponente abspiele, sozusagen "strechen", also, dass das Video komplett in einer vorgegebenen Größe abgespielt wird (z.B. 100x100)...
Is das möglich? THX!
torstenheinze
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 461



BeitragVerfasst: Di 04.03.03 18:38 
ausblenden Quelltext
1:
2:
3:
4:
mediaplayer1.FileName := 'FILENAME';
mediaplayer1.open;
mediaplayer1.Display := panel1;
mediaplayer1.DisplayRect := panel1.ClientRect;
Ryazor Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 29



BeitragVerfasst: Di 04.03.03 19:46 
Vielen, vielen Dank!
Hat Super geklappt! THX :D
bomberpilot80
Hält's aus hier
Beiträge: 5



BeitragVerfasst: Do 27.03.03 15:31 
Titel: OK
Die Idee ansich ist ganz gut.
Mich würde nur Interesieren, ob man das Video auf eine gewisse Größe geändert werden kann, die Seitenverhältnisse aber beibehalten werden.

Bei dieser Lösung, wird es zwar z.B. verkleinert dargstellt aber halt verzerrt.

MFG Timo
torstenheinze
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 461



BeitragVerfasst: So 30.03.03 14:21 
ausblenden Quelltext
1:
2:
3:
4:
5:
6:
  MediaPlayer1.Open;
  Panel1.BoundsRect := MediaPlayer1.DisplayRect;
  MediaPlayer1.DisplayRect := Panel1.ClientRect;
  MediaPlayer1.Display := Panel1;
  MediaPlayer1.Play;
  panel1.Top := 1;   <<- das kann auch ein anderer wert sein, aber er darf nicht weggelassen werden, denn sonst sieht man nur ein graues feld. er könnteaber ebensogut 2 oder 3 sein.