From 8125ae2b609a6cccb978e0d03ef968ccd8d2ae6f Mon Sep 17 00:00:00 2001 From: hkirat Date: Wed, 20 Mar 2024 00:58:04 +0530 Subject: [PATCH] fixed build --- src/components/VideoPlayer2.tsx | 2 +- src/components/VideoPlayerSegment.tsx | 2 +- src/components/admin/ContentRendererClient.tsx | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/VideoPlayer2.tsx b/src/components/VideoPlayer2.tsx index f798b13f4..b624ea8df 100644 --- a/src/components/VideoPlayer2.tsx +++ b/src/components/VideoPlayer2.tsx @@ -15,7 +15,7 @@ import './QualitySelectorControllBar'; // todo correct types interface VideoPlayerProps { - setQuality: React.Dispatch>; + setQuality: React.Dispatch>; options: any; onReady?: (player: Player) => void; subtitles?: string; diff --git a/src/components/VideoPlayerSegment.tsx b/src/components/VideoPlayerSegment.tsx index e3dbc4e67..81ae6660d 100644 --- a/src/components/VideoPlayerSegment.tsx +++ b/src/components/VideoPlayerSegment.tsx @@ -18,7 +18,7 @@ export interface Thumbnail { } interface VideoProps { - setQuality: React.Dispatch>; + setQuality: React.Dispatch>; thumbnails: Thumbnail[]; segments: Segment[]; subtitles: string; diff --git a/src/components/admin/ContentRendererClient.tsx b/src/components/admin/ContentRendererClient.tsx index d9f38c756..3dd40d353 100644 --- a/src/components/admin/ContentRendererClient.tsx +++ b/src/components/admin/ContentRendererClient.tsx @@ -38,8 +38,8 @@ export const ContentRendererClient = ({ const router = useRouter(); //@ts-ignore - const [quality, setQuality] = useState( - searchParams.get('quality') | null, + const [quality, setQuality] = useState( + searchParams.get('quality') ?? '1080', ); if (!metadata) {