Autor Beitrag
ByteKiller
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 32

Win Vista, XP Pro SP2
Delphi 7 (Delphi 2005)
BeitragVerfasst: Mo 26.06.06 11:15 
Hi,

ich hab in einem Programm mit einem MediaPlayer
einen Titel laufen. Wenn der zuende ist möchte ich
das er wieder von vorn abgespielt wird, nur das
krieg ich nicht hin!
Könnt ihr mir da helfen??

Mfg
Bergmann89
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1742
Erhaltene Danke: 72

Win7 x64, Ubuntu 11.10
Delphi 7 Personal, Lazarus/FPC 2.2.4, C, C++, C# (Visual Studio 2010), PHP, Java (Netbeans, Eclipse)
BeitragVerfasst: Di 27.06.06 08:37 
OK, das Problem hat sich allein gelöst !
Gausi
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 8554
Erhaltene Danke: 481

Windows 7, Windows 10
D7 PE, Delphi XE3 Prof, Delphi 10.3 CE
BeitragVerfasst: Di 27.06.06 08:43 
Egal obs nun ein Doppelaccount ist, oder ob ihr beiden zusammen in einem Team am selben Problem arbeitet, so wäre es schön, wenn einer die Lösung kurz posten würde, damit später auch andere was davon haben - Danke!

_________________
We are, we were and will not be.
ByteKiller Threadstarter
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 32

Win Vista, XP Pro SP2
Delphi 7 (Delphi 2005)
BeitragVerfasst: Mi 28.06.06 12:07 
Wir haben das folgender Maßen gereglet (wenn auch ein bischen umständlich):

In einem Timer, der sowieso ständig im Programm gelaufen ist, haben wir noch diese Zeilen dazugeschrieben:

ausblenden MediaPlayer Autorepeat
1:
2:
3:
4:
5:
  if MediaPlayer1.Position = MediaPlayer1.Length then
      begin
        MediaPlayer1.Rewind;
        MediaPlayer1.Play;
      end;


...ich denk aber, dass das einfachergeht.

Mfg ByteKiller


Zuletzt bearbeitet von ByteKiller am Mi 28.06.06 13:12, insgesamt 1-mal bearbeitet
crowley
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 406

Win XP, Win Vista, Mandriva, Ubuntu
Delphi 4-8, Delphi 2006, Delphi 2007
BeitragVerfasst: Mi 28.06.06 12:17 
hmm... habe noch nie mit dem MediaPlayer gearbeitet, aber gerade mal kurz in die Hilfe geschaut... denke, da sind zwei viel versprechende Properties und ein taugendes Event, die du dir mal näher anschauen solltest...

properties:
AutoRewind;
Notify;

Event:
OnNotify;

Wichtig: Wenn du im OnNotify reagierst, dann musst du anschließend Notify wieder auf True setzen.
ByteKiller Threadstarter
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 32

Win Vista, XP Pro SP2
Delphi 7 (Delphi 2005)
BeitragVerfasst: Mi 28.06.06 13:18 
JO, danke.

das mit dem AutoRewind haben wir schon rausgefunden, aber das is ja bloß das zurückspulen.
Dann haben wir nach nem AutoRepeat gesucht, aber sowas gab es nicht !
Aber deine Idee löst das Problem natürlich einfacher.

Thx & Mfg ByteKiller.