feat: implement proper queue functionality and improve upnext flyout and skip segment buttons

This commit is contained in:
--remove-section committed 2025-12-23 21:45:32 +05:30
1 parent e41b5b3085
commit b49f187098
10 files changed
+1019 -597

No files matched your search

+1 -20
View File
@@ -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