From 7327a69b55a20b99b14ee0803d6cf5f8b88c45ef Mon Sep 17 00:00:00 2001 From: Factiven Date: Wed, 13 Sep 2023 00:45:53 +0700 Subject: Update v4 - Merge pre-push to main (#71) * Create build-test.yml * initial v4 commit * update: github workflow * update: push on branch * Update .github/ISSUE_TEMPLATE/bug_report.md * configuring next.config.js file --- lib/Artplayer.js | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) (limited to 'lib/Artplayer.js') diff --git a/lib/Artplayer.js b/lib/Artplayer.js index 96afe2b..48da24d 100644 --- a/lib/Artplayer.js +++ b/lib/Artplayer.js @@ -14,10 +14,9 @@ export default function Player({ id, track, // socket - socket, - isPlay, - watchdata, - room, + // isPlay, + // watchdata, + // room, autoplay, setautoplay, ...rest @@ -59,18 +58,20 @@ export default function Player({ theme: "#f97316", controls: [ { + index: 10, name: "fast-rewind", - position: "right", - html: '', + position: "left", + html: '', tooltip: "Backward 5s", click: function () { art.backward = 5; }, }, { + index: 11, name: "fast-forward", - position: "right", - html: '', + position: "left", + html: '', tooltip: "Forward 5s", click: function () { art.forward = 5; @@ -79,7 +80,7 @@ export default function Player({ ], settings: [ { - html: "Autoplay", + html: "Autoplay Next", // icon: '', tooltip: "ON/OFF", switch: localStorage.getItem("autoplay") === "true" ? true : false, -- cgit v1.2.3