delphi MediaPlayer循环播放MP3所有音乐文件问题?


本文整理自网络,侵删。

 
MediaPlayer用得不多, 只知道这种办法, . 假如你已有一个ListBox1并已经装载好全部MP3的完整路径信息了, 可以加一个TIMER1, 在 TIMER1的事件里写代码跟踪播放器的模式, 一停止即播放下一首歌.procedure TForm1.Timer1Timer(Sender: TObject);
begin
  if MediaPlayer1.Mode=mpStopped then
  begin
    ListBox1.itemindex:=ListBox1.itemindex+1;
    MediaPlayer1.FileName:=ListBox1.Items[ListBox1.itemindex];
    MediaPlayer1.Close;
    MediaPlayer1.Open;
    MediaPlayer1.Play;。

相关阅读 >>

Delphi 操作sql 插入一万条数据 三种方式速度测试

Delphi unigui form控件跳转

Delphi版的创建高权限进程

Delphi webservices传数据

Delphi tnethttpcleint提交json串

Delphi复制文件夹内所有文件

Delphi 获取系统服务列表

floattostr问题 保留小数位

Delphi 截图函数screenshot

xp/2003下Delphi最简单的方法开放3389

更多相关阅读请进入《Delphi》频道 >>



打赏

取消

感谢您的支持,我会继续努力的!

扫码支持
扫码打赏,您说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦

分享从这里开始,精彩与您同在

评论

管理员已关闭评论功能...