mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-15 17:16:16 -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
@@ -33,7 +33,9 @@
|
||||
|
||||
function switchUrl(index) {
|
||||
var itemOption = playlist[index];
|
||||
player.switchUrl(itemOption.url, itemOption.title);
|
||||
player.switchUrl(itemOption.url, itemOption.title).then(function () {
|
||||
art.emit('artplayerPluginPlaylist:change', itemOption);
|
||||
});
|
||||
}
|
||||
|
||||
proxy($playlistInner, 'click', function (e) {
|
||||
|
||||
Reference in new issue
Block a user