fix: trickplay images not showing up

This commit is contained in:
Prayag Prajapati committed 2024-11-21 14:24:16 +05:30
1 parent 45f67aac40
commit 61fa734629
5 files changed
+45 -42

No files matched your search

+2
View File
@@ -467,6 +467,7 @@ function VideoPlayer() {
const trickplayResolutions = mediaSource.id
? item?.Trickplay?.[mediaSource.id]
: null;
console.log(item);
if (trickplayResolutions) {
let bestWidth: number | undefined;
const maxWidth = window.screen.width * window.devicePixelRatio * 0.2;
@@ -553,6 +554,7 @@ function VideoPlayer() {
</div>
);
}
if (currentChapter?.[0]?.Name) {
return (
<div className="flex flex-column video-osb-bubble glass">
+3 -1
View File
@@ -55,7 +55,7 @@ import TrailerButton from "@/components/buttons/trailerButton";
import ShowMoreText from "@/components/showMoreText";
import { SeasonSelectorSkeleton } from "@/components/skeleton/seasonSelector";
import { getTypeIcon } from "@/components/utils/iconsCollection";
import { setBackdrop, useBackdropStore } from "@/utils/store/backdrop";
import { useBackdropStore } from "@/utils/store/backdrop";
import IconLink from "@/components/iconLink";
import EpisodeSkeleton from "@/components/skeleton/episode";
@@ -103,6 +103,8 @@ function SeriesTitlePage() {
const api = Route.useRouteContext().api;
const setBackdrop = useBackdropStore((s) => s.setBackdrop);
const user = useCentralStore((s) => s.currentUser);
const item = useQuery({