Вниз
Скачать: CL | DM;

Как узнать длинну трека или клипа проигрываемого в TMediaPlaer ?   Найти похожие ветки 

 
DeMoN-777 ©   (2002-09-02 17:56) [0]

Делаю так


procedure TForm1.Button1Click(Sender: TObject);
type HMSRec = record
Hours: byte;
Minutes: byte;
Seconds: byte;
NotUsed: byte;
end;
var TheLength: LongInt;
begin
MediaPlayer1.TimeFormat := tfHMS;
TheLength := MediaPlayer1.Length;
with HMSRec(TheLength) do
begin
Label1.Caption := IntToStr(Hours);
Label2.Caption := IntToStr(Minutes);
Label3.Caption := IntToStr(Seconds);
end;
end;


А получается какая-то херня =(


 
DeMoN-777 ©   (2002-09-02 19:12) [1]

Плиз, помогите...........


 
DeMoN-777 ©   (2002-09-02 21:23) [2]

Для тех кому интересно...........
(c) by Алексей Ким

procedure TForm1.Button1Click(Sender: TObject);
var
i: LongInt;
hours,min:integer;
begin
i:=round(mp1.Length/1000);
hours := i div 3600;
i := i - hours*3600;
min := i div 60;
i := i - min*60;
showmessage(IntToStr(hours)+":"+IntToStr(min)+":"+IntToStr(i));
end;





Страницы: 1 вся ветка

Скачать: CL | DM;



Память: 0.45 MB
Время: 0.01 c
4-51993
Semion
2002-10-23 06:28
2002.12.16
запись в EXE


1-51695
avsh
2002-12-05 22:03
2002.12.16
Помогите


14-51907
Мазут Береговой
2002-11-22 00:51
2002.12.16
Я от жены ушел... или... она от меня...


1-51814
Separator
2002-12-05 11:48
2002.12.16
StringGrid


6-51876
Pars
2002-10-18 16:05
2002.12.16
Дозвон до провайдера




   Наверх