import { MWStreamType } from "@/backend/helpers/streams"; import { BrandPill } from "@/components/layout/BrandPill"; import { Player } from "@/components/player"; import { AutoPlayStart } from "@/components/player/atoms"; import { usePlayer } from "@/components/player/hooks/usePlayer"; import { useShouldShowControls } from "@/components/player/hooks/useShouldShowControls"; import { ScrapingPart } from "@/pages/parts/player/ScrapingPart"; import { playerStatus } from "@/stores/player/slices/source"; export function PlayerView() { const { status, setScrapeStatus, playMedia } = usePlayer(); const desktopControlsVisible = useShouldShowControls(); return ( {status === playerStatus.SCRAPING ? ( { if (out?.stream.type !== "file") return; const qualities = Object.keys( out.stream.qualities ) as (keyof typeof out.stream.qualities)[]; const file = out.stream.qualities[qualities[0]]; if (!file) return; playMedia({ type: MWStreamType.MP4, url: file.url, }); }} /> ) : null}
S1 E5 Mr. Jeebaloo discovers Atlantis
); }