1,183
社区成员
发帖
与我相关
我的任务
分享
RepeatPlay:=False;;
PlayListItem := pPlayListitem(Listbox1.Items.Objects[ListBox1.Itemindex]);
Filename := PlayListItem^.Path;
If Filename[Length(Filename)] <> '\' then
Filename := Filename + '\';
Filename := Filename + PlayListItem^.Filename;
PlayFile(Filename);
FilterGraph1.QueryInterface(IMediaSeeking, MediaSeeking);
with MediaSeeking do
Begin
GetCurrentPosition(CurrPos); // Play当前秒 0秒起步
GetStopPosition(EndPos); // 播放长度
end;
AllPos:=EndPos;
PlayingIndex := Listbox1.Itemindex;
If PlayingIndex > 0 then
SpeedButton6.Enabled := True
else
SpeedButton6.Enabled := False;
if PlayingIndex < Listbox1.Items.Count -1 then
SpeedButton7.Enabled := True
else
SpeedButton7.Enabled := False;