打开APP
userphoto
未登录

开通VIP,畅享免费电子书等14项超值服

开通VIP
连续播放歌曲代码
Private Sub Command1_Click()
Dim listCollection As IWMPPlaylistCollection
Dim list           As IWMPPlaylist
Dim wmpMedia       As IWMPMedia
Dim name           As String
Dim songs(2)       As String
Dim i              As Integer
name = "test"
songs(0) = App.Path & "\1.mp3"
songs(1) = App.Path & "\2.mp3"
songs(2) = App.Path & "\3.mp3"
Set listCollection = WindowsMediaPlayer1.playlistCollection
Set list = listCollection.newPlaylist(name)
WindowsMediaPlayer1.currentPlaylist = list
For i = 0 To UBound(songs)
Set wmpMedia = WindowsMediaPlayer1.newMedia(songs(i))
WindowsMediaPlayer1.currentPlaylist.appendItem wmpMedia
Next
WindowsMediaPlayer1.Controls.play
End Sub
本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请点击举报
打开APP,阅读全文并永久保存 查看更多类似文章
猜你喜欢
类似文章
变量到底是什么一回事?解释一下
在PowerPoint中插入视频的画面大小控制
非常美的英语名言
关于VB或VBA代码中前期绑定与后期绑定的区别
周一听一曲《小桥流水》,闭眼便听醉了....
VB中获取exe自身所在路径的几种方法
更多类似文章 >>
生活服务
热点新闻
分享 收藏 导长图 关注 下载文章
绑定账号成功
后续可登录账号畅享VIP特权!
如果VIP功能使用有故障,
可点击这里联系客服!

联系客服