寒
寒芳轻
Unregistered / Unconfirmed
GUEST, unregistred user!
问题: 我的播放器内核 dll的 position是single 类型的,如果用mediaplay,控制进度就是在procedure TForm1.ScrollBar1Scroll(Sender: TObject;
ScrollCode: TScrollCode;
var ScrollPos: Integer);
begin
MediaPlayer1.Position:=ScrollBar1.Position;
end;
procedure TForm1.Timer1Timer(Sender: TObject);
begin
if ScrollBar1.Enabled then
begin
ScrollBar1.Min:=0;
ScrollBar1.Max:=MediaPlayer1.Length;
ScrollBar1.Position:=MediaPlayer1.Position;
.........
但是先在,我的播放器dll的position是sigle类型,应该怎么做呢!!谢谢先!!
ScrollCode: TScrollCode;
var ScrollPos: Integer);
begin
MediaPlayer1.Position:=ScrollBar1.Position;
end;
procedure TForm1.Timer1Timer(Sender: TObject);
begin
if ScrollBar1.Enabled then
begin
ScrollBar1.Min:=0;
ScrollBar1.Max:=MediaPlayer1.Length;
ScrollBar1.Position:=MediaPlayer1.Position;
.........
但是先在,我的播放器dll的position是sigle类型,应该怎么做呢!!谢谢先!!