Главная страница
Top.Mail.Ru    Яндекс.Метрика
Текущий архив: 2002.12.16;
Скачать: 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 вся ветка

Текущий архив: 2002.12.16;
Скачать: CL | DM;

Наверх




Память: 0.47 MB
Время: 0.015 c
1-51750
New Faction
2002-12-04 13:25
2002.12.16
MainMenu1 and Form3(unit3)


1-51675
123000
2002-12-05 17:23
2002.12.16
Tables


1-51676
Fishka
2002-12-05 15:44
2002.12.16
Принадлежность точки контуру - где найти теорию?


4-52027
Anonimus
2002-11-05 10:42
2002.12.16
Ну очень нужна помощь.....


1-51821
Sergy
2002-12-05 11:27
2002.12.16
Flash файл в заставку