Autor Beitrag
-homer-
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 32

Win Xp
D6
BeitragVerfasst: Sa 02.08.03 13:39 
moin allerseits,
:nixweiss: :nixweiss: :nixweiss: :nixweiss:
ich nix weiß wie ich machen wenn media player lied eins zuende lied zwei automatisch machen!!!

Verdeutlichung: ich kann mit dem Mediaplayer gans normale sounds abspielen, aber ich wüsste gerne was ich machen muss damit der Mediaplayer wenn der das erste lied fertig hat automatisch das zweite abspielt!!!

Kann mir da jemand helfen. :lol:

_________________
don't ask to ask just ask
Tomac
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 113

Win XP
D6 Ent
BeitragVerfasst: Sa 02.08.03 15:59 
Hi!

Ob ein Lied zu Ende ist, fragst du so ab:

ausblenden Delphi-Quelltext
1:
if mediaplayer1.position=mediaplayer1.length then begin...					


und dann einfach das neue Lied laden (filename)


mfG
Tomac
Aya
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1964
Erhaltene Danke: 15

MacOSX 10.6.7
Xcode / C++
BeitragVerfasst: Sa 02.08.03 16:44 
Hi
[quote="Tomac"]Ob ein Lied zu Ende ist, fragst du so ab:

ausblenden Delphi-Quelltext
1:
if mediaplayer1.position=mediaplayer1.length then begin...					
quote]
Naaa ja... das ist eine sehr unschöne methode ... ;)

Ich würd eher auf das OnNotify-Event des MediaPlayers reagieren:

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
procedure TForm1.Create(...);
begin
  MediaPlayer1.Notify:=true;
end;

procedure TForm1.MediaPlayer1OnNotify(...);
begin
  if MediaPlayer1.NotifyValue = nvSuccessful then
    //Play next.       
end;


Au'revoir,
Aya~

_________________
Aya
I aim for my endless dreams and I know they will come true!