feat: implement proper queue functionality and improve upnext flyout and skip segment buttons
This commit is contained in:
10 files changed
+1019
-597
No files matched your search
@@ -8,7 +8,7 @@ import { playItemFromQueue, usePlaybackStore } from "@/utils/store/playback";
|
||||
|
||||
import "./videoPlayer.scss";
|
||||
|
||||
import { PlayMethod, RepeatMode } from "@jellyfin/sdk/lib/generated-client";
|
||||
import { RepeatMode } from "@jellyfin/sdk/lib/generated-client";
|
||||
import { useMutation } from "@tanstack/react-query";
|
||||
import { createFileRoute, useRouter } from "@tanstack/react-router";
|
||||
import JASSUB from "jassub";
|
||||
@@ -508,25 +508,6 @@ export function VideoPlayer() {
|
||||
}
|
||||
}, []);
|
||||
|
||||
// useEffect(() => {
|
||||
// async function setVolumeInServer() {
|
||||
// if (!api) return null;
|
||||
// await getDisplayPreferencesApi(api).updateDisplayPreferences({
|
||||
// userId: user?.Id,
|
||||
// client: "blink",
|
||||
// displayPreferencesId: api.deviceInfo.id,
|
||||
// displayPreferencesDto: {
|
||||
// CustomPrefs: {
|
||||
// Volume: String(playerVolume),
|
||||
// },
|
||||
// },
|
||||
// });
|
||||
// }
|
||||
// if (user?.Id && initVolume !== playerVolume && initVolume !== undefined) {
|
||||
// setVolumeInServer();
|
||||
// }
|
||||
// }, [playerVolume]);
|
||||
|
||||
const idleTimerRef = useRef<NodeJS.Timeout | null>(null);
|
||||
|
||||
// Function to clear the existing idle timer
|
||||
|
||||
Reference in new issue
Block a user