mirror of
https://github.com/jeffvli/feishin.git
synced 2026-08-08 13:23:16 +02:00
Add support for OpenSubsonic enhanced lyrics (#2208)
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user