Autor Beitrag
hibbert
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1007

WinServer2003, Win XP, Linux
D6 Pers, D05
BeitragVerfasst: Sa 19.07.03 11:02 
Hallo,
wie kann ich über den D6 Standard Mediaplayer die aktuelle Position des Titel heraus finden? mit
ausblenden Delphi-Quelltext
1:
2:
3:
4:
var pos:integer;
begin
pos:=player1.TrackPosition[1];
[...]

bekomme ich immer eine 1 oder eine 0 als Ergebnis.

Wie kann ich die Lautstärke verändern? Kann dieser Mediaplayer die lautstäke des wiedergebenden Titel verringern, ohne im System die Laustärke zu verändern?

thx Hibbert

_________________
I kunnen väl svara endast ja eller nej
Om i viljen eller nej
Tomac
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 113

Win XP
D6 Ent
BeitragVerfasst: Sa 19.07.03 11:28 
Die Position solltest du so erhalten:
ausblenden Delphi-Quelltext
1:
pos:=mediaplayer1.position;					

mfG
Tomac
hibbert Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1007

WinServer2003, Win XP, Linux
D6 Pers, D05
BeitragVerfasst: Sa 19.07.03 12:52 
Danke für die Positionsangabe :D

mhh, da gibt es ein Problem. Ich erhalte diesen Fehler nachdem ich die MediaPlayer Kompo auf die Form gesetzt habe:
Zitat:
[Error] Unit1.pas(23): Identifier redeclared: 'MPlayer'


was hat das zu bedeuten?

thx hibbert

_________________
I kunnen väl svara endast ja eller nej
Om i viljen eller nej
Ex0rzist
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 550

Win XP Prof.
Mandrake 10.0

D6
BeitragVerfasst: Sa 19.07.03 17:00 
Dann schau mal in deiner Unit, ob du noch irgendwo MPlayer deklariert hast.

_________________
If accidentally read, induce vomitting.
hibbert Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1007

WinServer2003, Win XP, Linux
D6 Pers, D05
BeitragVerfasst: Sa 19.07.03 17:11 
stimmt ja, etwas weiter oben gibt es ja auch noch ein Uses
:autsch:

Danke !!

Hibbert

_________________
I kunnen väl svara endast ja eller nej
Om i viljen eller nej