add artplayerPluginPlaylist:change

This commit is contained in:
zhw2590582 committed 2019-04-21 12:28:52 +08:00
1 parent a056983047
commit 2ebdfb4a2d
3 files changed
+7 -3

No files matched your search

@@ -34,7 +34,9 @@ function artplayerPluginPlaylist(art) {
function switchUrl(index) {
const itemOption = playlist[index];
player.switchUrl(itemOption.url, itemOption.title);
player.switchUrl(itemOption.url, itemOption.title).then(() => {
art.emit('artplayerPluginPlaylist:change', itemOption);
});
}
proxy($playlistInner, 'click', e => {