apply patch to mediaelement-plugins playlist
This commit is contained in:
parent
14f2cf536f
commit
ce1707eb80
7
Makefile
7
Makefile
@ -1,6 +1,9 @@
|
|||||||
.PHONY: all src css
|
.PHONY: all depend css src
|
||||||
|
|
||||||
all: css src
|
all: depend css src
|
||||||
|
|
||||||
|
depend:
|
||||||
|
patch -d mediaelement-plugins -p1 < patches/mediaelement-plugins/01-playlist.js.diff
|
||||||
|
|
||||||
css:
|
css:
|
||||||
css/build.sh
|
css/build.sh
|
||||||
|
13
patches/mediaelement-plugins/01-playlist.js.diff
Normal file
13
patches/mediaelement-plugins/01-playlist.js.diff
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
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();
|
Loading…
Reference in New Issue
Block a user