Autor Beitrag
Toastbrotbaby
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 98



BeitragVerfasst: Fr 17.12.10 13:19 
Moin,

Mein Problem sieht wie folgt aus.

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
Panel1.Visible:= true;
  MediaPlayer1.FileName:= 'Filme\xyz.mpeg';
    MediaPlayer1.Open;
      MediaPlayer1.Display:=Panel1;
        MediaPlayer1.DisplayRect:= Panel1.ClientRect;
          MediaPlayer1.Play;



Darüber wird die Videodatei gestartet.

Was nun aber nicht passiert, ist dass wenn die Datei zu ende ist, automatisch das Panel wieder auf unsichtbar gesetzt wird.

Kann mir da auf die schnelle jemand helfen wie ich das problemlos realisieren kann?

Greetz
jaenicke
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 19316
Erhaltene Danke: 1747

W11 x64 (Chrome, Edge)
Delphi 12 Pro, C# (VS 2022), JS/HTML, Java (NB), PHP, Lazarus
BeitragVerfasst: Fr 17.12.10 13:26 
Also das erste Problem sehe ich schonmal: Die Formatierung :shock:, einrücken bedeutet eine neue Ebene im Quelltext, hier gibt es aber gar keine...

Nun gut, zum zweiten Problem: Du kannst OnNotify des MediaPlayers benutzen und darin den Mode prüfen.

Alternative: Benutze eine echte Abspiellösung wie das DSPack, das kann sowieso viel mehr und das auch besser.
Toastbrotbaby Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 98



BeitragVerfasst: Fr 17.12.10 13:38 
Moin,

danke für die echt schnelle Antwort.

Durch nen ganz blöden zufall bin ich über die Suche auch auf OnNotify gekommen. Keine Ahnung wieso ich das übersehen hatte.

Danke dir aber nochmal

Greetz