Autor Beitrag
Finger
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 38



BeitragVerfasst: Di 18.04.06 09:50 
Hi Cracks! Ich wollte ma fragen ob einer ein Tutorial oder ne Source hat für nen simplen media player! Er sollte folgende funktionen besitzen :

-Play
-Stop
-Fastfrwd
-Fastbkwrd

und natürlich sollte es möglich sein irgendwelche dateien zu öffnen und net nur die im Quellcode!


Gruss
Anarkids
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 81

Win XP Pro, Freundin
Delphi 2006, C/C++, VisualBasic
BeitragVerfasst: Di 18.04.06 09:56 
hi.

hast ja bestimmt schonmal mit der TMediaPlayer Komponente versucht oder?

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
procedure TForm1.Button1Click(Sender: TObject);
begin
mediaplayer1.filename := 'C:/song.mp3';
mediaplayer1.open;
mediaplayer1.play; //spielt den song
end;


mfg
anarkids

_________________
Mr.D
Change begins with you - TODAY!
Finger Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 38



BeitragVerfasst: Di 18.04.06 09:58 
Ja! aber der is zu simpel! Und die Komponente kann ich net richtig einbinden! Und eben bräuchte noch fast backward und vorward!
Anarkids
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 81

Win XP Pro, Freundin
Delphi 2006, C/C++, VisualBasic
BeitragVerfasst: Di 18.04.06 10:00 
also wenn ich mich recht erinner, dann kannst du beim TMediaplayer mit .next; und .back; zwischen den songs wechseln (wenn du das mit fastforward/backward meintest).

edit: wieso kannst du die komponente nicht richtig einbinden?

_________________
Mr.D
Change begins with you - TODAY!
Finger Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 38



BeitragVerfasst: Di 18.04.06 10:02 
Ich kann den gar net bedienen! der is wie ausegblendet! und fast forward meine ich mit spulen!
Anarkids
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 81

Win XP Pro, Freundin
Delphi 2006, C/C++, VisualBasic
BeitragVerfasst: Di 18.04.06 10:05 
ach?! der erscheint gar nich erst auf dem formular?

sorry, mit dem fastforward etc kann ich dir leider nicht helfen :(

_________________
Mr.D
Change begins with you - TODAY!
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 18.04.06 14:01 
Schau dir mal Bass oder Fmod an. Damit lässt sich ein schnelles vorspulen recht einfach realisieren. Mit der Standard-Mediaplayer-Komponente geht das afaik nicht.
Bei Bass sind auch Beispiel-Programme dabei, wie man damit richtig umgeht.

_________________
We are, we were and will not be.
patrick dee
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 311

Win 98SE, WinXP
D3,D6
BeitragVerfasst: Mi 19.04.06 10:19 
Titel: vor und zurück spulen
hi

evtl. hilft dir das weiter :

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
procedure TForm1.btn1sekundevorClick(Sender: TObject);
begin
 with MediaPlayer do
 begin
 MediaPlayer.Position := MediaPlayer.Position + 1000;
  MediaPlayer.Play;
end;
end;


das wäre eine Sekunde vor geht natürlich auch zurück mit - 1000 usw.

Nur so als Gedanke

gruß

Patrick

_________________
Glauben heißt nichts wissen ...