mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-19 03:11:20 -08:00
add artplayerPluginPlaylist:change
This commit is contained in:
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 => {
|
||||
|
||||
Reference in new issue
Block a user