myplayer/patches/mediaelement-plugins/01-playlist.js.diff

14 lines
524 B
Diff

diff --git a/src/playlist/playlist.js b/src/playlist/playlist.js
index 82112fb..fcf4ade 100644
--- a/src/playlist/playlist.js
+++ b/src/playlist/playlist.js
@@ -81,7 +81,7 @@ Object.assign(MediaElementPlayer.prototype, {
player.endedCallback = () => {
if (player.currentPlaylistItem < player.listItems.length) {
- player.setSrc(player.playlist[++player.currentPlaylistItem]);
+ player.setSrc(player.playlist[++player.currentPlaylistItem].src);
player.load();
setTimeout(() => {
player.play();