AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Zurück Delphi-PRAXiS Programmierung allgemein Win32/Win64 API (native code) Delphi wie kann man Video automatisch schließen nach dem abspielen
Thema durchsuchen
Ansicht
Themen-Optionen

wie kann man Video automatisch schließen nach dem abspielen

Ein Thema von dannforth · begonnen am 29. Jan 2003 · letzter Beitrag vom 31. Jan 2003
Antwort Antwort
dannforth

Registriert seit: 28. Jan 2003
8 Beiträge
 
#1

wie kann man Video automatisch schließen nach dem abspielen

  Alt 29. Jan 2003, 21:50
Hallo,
Ich habe eine procedure geschrieben, dass ein Video mit der mediaplayer komponente auf Vollbild geöffnet wird:
Delphi-Quellcode:
procedure TForm1.Video11Click(Sender: TObject);
begin
 Borderstyle := bsNone;
 Windowstate := wsMaximized;
 mediaplayer1.FileName:=opendialog1.FileName;
 mediaplayer1.Open;
 mediaplayer1.Play;
 mediaplayer1.DisplayRect:=form1.GetClientRect;
end;
Wie mache ich es jedoch, dass das Programm wieder aus dem Vollbildmodus zurückehrt, ohne, dass man erneut einen Befehl dur druck auf eine Taste geben muss.
zur Zeit habe ich es so gemacht, ich will aber das es automatisch geht:

Delphi-Quellcode:
procedure TForm1.schlieen1Click(Sender: TObject);
begin

 form1.ClientHeight := (360);
 Form1.ClientWidth := (457);
 Borderstyle := bsSizeable;
 Windowstate := wsNormal;
 mediaplayer1.Close;
end;
schon mal danke im Vorraus,
mfg,
Dannforth

[edit=Daniel B]Delphi-Tags gesetzt; MfG Daniel B.[/edit]
  Mit Zitat antworten Zitat
Benutzerbild von Luckie
Luckie

Registriert seit: 29. Mai 2002
37.621 Beiträge
 
Delphi 2006 Professional
 
#2
  Alt 29. Jan 2003, 21:59
Löst der MediaPlayer ein Ereignis aus, wenndas Video zu ende ist?
Michael
Ein Teil meines Codes würde euch verunsichern.
  Mit Zitat antworten Zitat
Daniel B
(Gast)

n/a Beiträge
 
#3
  Alt 29. Jan 2003, 22:10
Zitat von Luckie:
Löst der MediaPlayer ein Ereignis aus, wenndas Video zu ende ist?
Ich habe keins finden können.

Grüsse, Daniel
  Mit Zitat antworten Zitat
Daniel B
(Gast)

n/a Beiträge
 
#4
  Alt 29. Jan 2003, 22:15
Vielleicht bringt das noch was.

Zitat:
Occurs upon the completion of a media control method.

property OnNotify: TNotifyEvent;

Description

OnNotify occurs upon the completion of a media control method (Back, Close, Eject, Next, Open, Pause, PauseOnly, Play, Previous, Resume, Rewind, StartRecording, Step, or Stop) when the Notify property is set to True before the call to the media control method. After an OnNotify event, the Notify property must be reset to True for the next OnNotify event to occur.
Sonst sieht es ziemlich schlecht aus.

Grüsse, Daniel
  Mit Zitat antworten Zitat
dannforth

Registriert seit: 28. Jan 2003
8 Beiträge
 
#5
  Alt 30. Jan 2003, 21:41
Hi,
mal schaun, ob ich da mit dem TNotifyEvent hinkrieg.
Auf jeden Fall danke für eure Antworten,
mfg,
dannforth
  Mit Zitat antworten Zitat
dannforth

Registriert seit: 28. Jan 2003
8 Beiträge
 
#6
  Alt 31. Jan 2003, 13:24
juhu,
ich habs geschaft,
Big thx @ Daniel für den tip mit notify.
mfg,
Dannforth
  Mit Zitat antworten Zitat
Benutzerbild von Luckie
Luckie

Registriert seit: 29. Mai 2002
37.621 Beiträge
 
Delphi 2006 Professional
 
#7
  Alt 31. Jan 2003, 13:31
Und wo bleibe ich? Ich hatte ja die Idee mit dem Event.
Michael
Ein Teil meines Codes würde euch verunsichern.
  Mit Zitat antworten Zitat
dannforth

Registriert seit: 28. Jan 2003
8 Beiträge
 
#8
  Alt 31. Jan 2003, 16:31
oh, sry,
Danke, lucky, Danke,
  Mit Zitat antworten Zitat
Benutzerbild von Luckie
Luckie

Registriert seit: 29. Mai 2002
37.621 Beiträge
 
Delphi 2006 Professional
 
#9
  Alt 31. Jan 2003, 16:49
Nicht so schlimm, war ja nur ein Scherz. Aber trotzdem schreibt sich mein Nick mit ie.
Michael
Ein Teil meines Codes würde euch verunsichern.
  Mit Zitat antworten Zitat
Antwort Antwort


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 11:43 Uhr.
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz