Autor Beitrag
Sauger Chris
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 228

Win XP, Linux SuSE 9.2
Delphi 4,Delphi 7 Ent.
BeitragVerfasst: Sa 18.10.03 16:23 
wie lasse ich eine avi in einer Animate ablaufen lassen

bitte ein Quellcode

danke

chris(delphi7) :D
DeCodeGuru
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1333
Erhaltene Danke: 1

Arch Linux
Eclipse
BeitragVerfasst: Sa 18.10.03 16:28 
Schon mal in der Hilfe geschaut? :roll:

_________________
Viele Grüße
Jakob
Sauger Chris Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 228

Win XP, Linux SuSE 9.2
Delphi 4,Delphi 7 Ent.
BeitragVerfasst: Sa 18.10.03 21:30 
kannst du mir einen Quellcode geben
DeCodeGuru
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1333
Erhaltene Danke: 1

Arch Linux
Eclipse
BeitragVerfasst: Sa 18.10.03 21:33 
kann ich

_________________
Viele Grüße
Jakob
Sauger Chris Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 228

Win XP, Linux SuSE 9.2
Delphi 4,Delphi 7 Ent.
BeitragVerfasst: Sa 18.10.03 21:42 
und gibst du ihn mir

dank

Chris(delphi7)
toms
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1099
Erhaltene Danke: 2



BeitragVerfasst: Sa 18.10.03 21:50 
Hi!

TAnimate kann keine AVIs mit Sound abspielen.
Besser sind die MCI APIs.

Beispiel (www.swissdelphicente...wnload.php?id=1309):
ausblenden 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:
uses
  VfW;

var
  wndAVI: HWND;

//...

procedure TForm1.FormCreate(Sender: TObject);
begin
  wndAVI := MCIWndCreate(Panel1.Handle,  // parent window handle
                      HInstance,      // instance handle
                      WS_VISIBLE or WS_CHILD or MCIWNDF_NOMENU or MCIWNDF_NOPLAYBAR,
                      // window styles
                      'C:\speedis.avi');
  MCIWndPlayFrom(wndAVI,0);
  Label1.Caption := Format('AVI Length %d', [MCIWndGetLength(wndAVI)]);
end;


procedure TForm1.FormDestroy(Sender: TObject);
begin
  MCIWndDestroy(wndAVI);
end;
Sauger Chris Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 228

Win XP, Linux SuSE 9.2
Delphi 4,Delphi 7 Ent.
BeitragVerfasst: Sa 18.10.03 21:57 
danke

es hätte auch one sound gelanckt

chris(Delphi7)
G-man
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 258

Win 2000, Win ME, SuSE 8.2
D5 Standard, D6 Professional
BeitragVerfasst: Mo 20.10.03 08:21 
Wenn du eine avi ohne Sound abspielen möchtest brauchst du den Quellcode gar nicht.
Es gibt eine Eigenschaft die du unter Eigenschaften findest (wer hätte das gedacht), bei der du deiner TAnimate eine Avi zuweisen kannst.
Schau einfach nach.

PS: Natürlich kanns du deiner TAnimate auch im Quellcode eine Avi zuweisen...

_________________
...To err is human, but to really foul things up requires a computer.