优化demo

This commit is contained in:
Harvey committed 2019-11-27 16:14:43 +08:00
1 parent a836852e48
commit 06fc487482
14 files changed
+75 -56

No files matched your search

@@ -37,7 +37,11 @@ function artplayerPluginPlaylist(list) {
function switchUrl(index) {
const itemOption = playlist[index];
const isPlaying = player.playing;
return player.switchUrl(itemOption.url, itemOption.title).then(() => {
if (isPlaying) {
player.play = true;
}
art.emit('artplayerPluginPlaylist:change', itemOption);
});
}