Skip to content

Commit

Permalink
fixed build
Browse files Browse the repository at this point in the history
  • Loading branch information
hkirat committed Mar 19, 2024
1 parent 1020426 commit 8125ae2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/components/VideoPlayer2.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import './QualitySelectorControllBar';

// todo correct types
interface VideoPlayerProps {
setQuality: React.Dispatch<React.SetStateAction<number>>;
setQuality: React.Dispatch<React.SetStateAction<string>>;
options: any;
onReady?: (player: Player) => void;
subtitles?: string;
Expand Down
2 changes: 1 addition & 1 deletion src/components/VideoPlayerSegment.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export interface Thumbnail {
}

interface VideoProps {
setQuality: React.Dispatch<React.SetStateAction<number>>;
setQuality: React.Dispatch<React.SetStateAction<string>>;
thumbnails: Thumbnail[];
segments: Segment[];
subtitles: string;
Expand Down
4 changes: 2 additions & 2 deletions src/components/admin/ContentRendererClient.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ export const ContentRendererClient = ({
const router = useRouter();

//@ts-ignore
const [quality, setQuality] = useState<number>(
searchParams.get('quality') | null,
const [quality, setQuality] = useState<string>(
searchParams.get('quality') ?? '1080',
);

if (!metadata) {
Expand Down

0 comments on commit 8125ae2

Please sign in to comment.