Autor Beitrag
Hagbard
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 142

Win XP Home / Pro
D7.1 Architekt
BeitragVerfasst: Fr 21.05.04 16:17 
Hallo zusammen,

und mal wieder die MediaPlayer Komponente:

Wenn Ich diesen Code ausführe, dann kommt immer die Fehlermeldung: "Kein MCI-Gerät geöffnet".

Ich hab schon im Forum gesucht, aber niemanden mit einem ähnlichen Problem oder CodeSchnipseln gefunden die grob anders wären wie meiner.

ausblenden Quelltext
1:
2:
3:
4:
  MediaPlayer1.FileName := 'C:\Media-Archiv\Video\Van Helsing.avi';
  MediaPlayer1.Display:=Panel1;
  MediaPlayer1.DisplayRect:=Panel1.ClientRect;
  MediaPlayer1.Play;


Was hab Ich da falsch gemacht? Oder spinnt mein Rechner einfach nur rum?
Die Datei ist vorhanden und läßt sich mit dem MediaPlayer auch abspielen.

Viele Grüße,
Christian
Hagbard Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 142

Win XP Home / Pro
D7.1 Architekt
BeitragVerfasst: Fr 21.05.04 16:34 
ok ok... ich hab vergessen den Media Player zu öffnen.....:

ausblenden Quelltext
1:
2:
3:
4:
5:
6:
  MediaPlayer1.Display:=Panel1;
  MediaPlayer1.DisplayRect:=Panel1.ClientRect;
  MediaPlayer1.FileName := 'C:\Media-Archiv\Video\Xinedome_Trailer.avi';
  MediaPlayer1.Open;   // <-----
  MediaPlayer1.Play;
end;


So gehts.....


Viele Grüße,
Christian
FlameDiver
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 104

WIN XP
D6 Pers
BeitragVerfasst: Fr 21.05.04 16:40 
LOL :rofl: irren is menschlich!

_________________
From Hell and back again