Skip to content

Commit

Permalink
换P后自动播放(fix #2)
Browse files Browse the repository at this point in the history
  • Loading branch information
HCLonely committed Oct 17, 2023
1 parent 7da4f10 commit 50e1f10
Show file tree
Hide file tree
Showing 6 changed files with 1,736 additions and 1,721 deletions.
3 changes: 2 additions & 1 deletion dist/artplayer-plugin-playlist.browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,9 @@ var artplayerPlaylist = function artplayerPlaylist(options) {
id: "".concat(artOptions.id, "-").concat(index === 0 ? '' : index)
}));
} else {
var _options$autoNext2;
art.switchUrl(options.playlist[index].url, options.playlist[index].title);
if (artOptions.autoplay) {
if ((_options$autoNext2 = options.autoNext) !== null && _options$autoNext2 !== void 0 ? _options$autoNext2 : artOptions.autoplay) {
art.play();
}
}
Expand Down
3 changes: 2 additions & 1 deletion dist/artplayer-plugin-playlist.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,9 @@ var artplayerPlaylist = function artplayerPlaylist(options) {
id: "".concat(artOptions.id, "-").concat(index === 0 ? '' : index)
}));
} else {
var _options$autoNext2;
art.switchUrl(options.playlist[index].url, options.playlist[index].title);
if (artOptions.autoplay) {
if ((_options$autoNext2 = options.autoNext) !== null && _options$autoNext2 !== void 0 ? _options$autoNext2 : artOptions.autoplay) {
art.play();
}
}
Expand Down
2 changes: 1 addition & 1 deletion dist/artplayer-plugin-playlist.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "artplayer-playlist",
"version": "1.0.2",
"version": "1.0.3",
"description": "artplayer播放列表插件",
"main": "dist/artplayer-plugin-playlist.js",
"scripts": {
Expand Down
Loading

0 comments on commit 50e1f10

Please sign in to comment.