mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-24 23:51:20 -08:00
优化demo
This commit is contained in:
1 parent
a836852e48
commit
06fc487482
14 files changed
+75
-56
No files matched your search
@@ -31,7 +31,12 @@
|
||||
|
||||
function switchUrl(index) {
|
||||
var itemOption = playlist[index];
|
||||
var isPlaying = player.playing;
|
||||
return player.switchUrl(itemOption.url, itemOption.title).then(function () {
|
||||
if (isPlaying) {
|
||||
player.play = true;
|
||||
}
|
||||
|
||||
art.emit('artplayerPluginPlaylist:change', itemOption);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user