Autor Beitrag
Grave_digger
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 33



BeitragVerfasst: Mo 14.06.04 15:36 
Morgen

ich brauch eine Komponte mit der ich unter WINXP mpeg datei abspielen kann aber sie muss für Delphi 5 sein

hab noch keine andere Version

MFG
grave digger



Wer viel weiß kann viel vergessen

Moderiert von user profile iconAya: Titel geändert.
NetZwerg
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 448

Slackware 10.1
Kylix 3, D5 Standard
BeitragVerfasst: Di 15.06.04 19:39 
hi,

ausblenden volle Höhe Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
// uses MMSystem;

procedure TForm1.Button1Click(Sender: TObject);
var
  Befehl : String;

begin
  Panel1.Width := 0;
  Panel1.Height := 0;
  mciSendString('open j:\video.mpg alias film', nil, 0, 0);
  mciSendString('set film time format milliseconds', nil, 0, 0);

  // Video shall be played on Panel1

  Befehl := 'window film handle ' + IntToStr(Panel1.Handle);
  mciSendString(PChar(Befehl), nil, 0, 0);

  // play only 1 millisecond

  mciSendString('play film from 0 to 1', nil, 0, 0);

  // Resize Panel

  Panel1.Width := 320;
  Panel1.Height := 240;

  // Play entire video

  mciSendString('play film from 0', nil, 0, 0);
end;

procedure TForm1.Button2Click(Sender: TObject);
begin
  mciSendString('close film', nil, 0, 0);
end;


von www.chaho.de/templat...p;ID=153&GetID=2 das soll flackerfrei werden :D kein plan ob das funzt...

Bye, Dave

_________________
"Manche Leute drücken nur deshalb ein Auge zu, damit sie besser zielen können."
Billy Wilder, amer. Filmregisseur