Add support for OpenSubsonic enhanced lyrics (#2208)

This commit is contained in:
Jeff
2026-07-09 21:32:05 -07:00
committed by GitHub
parent 0c89fea1ea
commit 355b19c1cb
55 changed files with 4213 additions and 480 deletions
@@ -127,6 +127,10 @@ export function WebPlayer() {
return;
}
if (num === 1) {
setTimestamp(e.playedSeconds);
}
if (repeat === PlayerRepeat.ONE) {
handleRepeatOne(1, e.playedSeconds, getDuration(playerRef.current.player1().ref));
return;
@@ -170,6 +174,7 @@ export function WebPlayer() {
num,
player2,
repeat,
setTimestamp,
transitionType,
volume,
],
@@ -181,6 +186,10 @@ export function WebPlayer() {
return;
}
if (num === 2) {
setTimestamp(e.playedSeconds);
}
if (repeat === PlayerRepeat.ONE) {
handleRepeatOne(2, e.playedSeconds, getDuration(playerRef.current.player2().ref));
return;
@@ -224,6 +233,7 @@ export function WebPlayer() {
num,
player1,
repeat,
setTimestamp,
transitionType,
volume,
],
@@ -388,7 +398,7 @@ export function WebPlayer() {
transitionType === PlayerStyle.CROSSFADE ||
transitionType === PlayerStyle.GAPLESS
) {
setTimestamp(Number(currentTime.toFixed(0)));
setTimestamp(currentTime);
}
}, 500);