Autor Beitrag
No0B
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 62



BeitragVerfasst: So 21.03.10 20:45 
Würde gern eine Loopfunktion im Mediaplayer einbauen habs erst versucht mit Autorewind-true danach mit:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
procedure Form1.MediaPlayer1Notify(Sender: TObject);
begin
  if MediaPlayer1.Notify = True then
  begin
    MediaPlayer1.Play;
  end else
  begin
  end;

aber kommt immer en Fehler und unterstreicht mir Notify, was is da los ?

Moderiert von user profile iconNarses: Delphi-Tags hinzugefügt
Blackheart666
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2195

XP
D3Prof, D6Pers.
BeitragVerfasst: So 21.03.10 21:02 
Du könntest Dir auch mal PlaySound anschauen.
ALF
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 1085
Erhaltene Danke: 53

WinXP, Win7, Win10
Delphi 7 Enterprise, XE
BeitragVerfasst: So 21.03.10 21:14 
Hi, heist das nicht-
ausblenden Delphi-Quelltext
1:
2:
procedure TForm1.MediaPlayer1Notify(Sender: TObject);
....


ansonsten verwende mal
ausblenden Delphi-Quelltext
1:
2:
if MediaPlayer1.NotifyValue = nvSuccessful then 
   MediaPlayer1.Play;

Bitte den Quelltext in [delphi]Dein Quelltext [/delphi] tags, sieht schöner aus :wink:
Gruss ALf

_________________
Wenn jeder alles kann oder wüsste und keiner hätt' ne Frage mehr, omg, währe dieses Forum leer!
No0B Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 62



BeitragVerfasst: Mo 22.03.10 21:33 
@ALF, Es funzt, Danke