Compare commits
No commits in common. "ce1707eb800cd62e64c6d006a0246559bdc61943" and "3979d358d0801c595cd0e1ba80f32becb9c177fb" have entirely different histories.
ce1707eb80
...
3979d358d0
7
Makefile
7
Makefile
@ -1,9 +1,6 @@
|
|||||||
.PHONY: all depend css src
|
.PHONY: all src css
|
||||||
|
|
||||||
all: depend css src
|
all: css src
|
||||||
|
|
||||||
depend:
|
|
||||||
patch -d mediaelement-plugins -p1 < patches/mediaelement-plugins/01-playlist.js.diff
|
|
||||||
|
|
||||||
css:
|
css:
|
||||||
css/build.sh
|
css/build.sh
|
||||||
|
@ -1,11 +1,10 @@
|
|||||||
{
|
{
|
||||||
"name": "myplayer",
|
"name": "myplayer",
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"type": "module",
|
|
||||||
"description": "A Web-MP3-Player with Playlist Support",
|
"description": "A Web-MP3-Player with Playlist Support",
|
||||||
"main": "src/player.js",
|
"main": "src/player.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "npx eslint src/player.js"
|
"test": "echo \"Error: no test specified\" && exit 1"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
@ -14,7 +13,6 @@
|
|||||||
"author": "tilt <tilt@linuxfoo.de>",
|
"author": "tilt <tilt@linuxfoo.de>",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"eslint": "^9.14.0",
|
|
||||||
"minify": "^11.4.1"
|
"minify": "^11.4.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,13 +0,0 @@
|
|||||||
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