diff --git a/src/_oldvideo/components/VideoPlayer.tsx b/src/_oldvideo/components/VideoPlayer.tsx deleted file mode 100644 index 30b521b0..00000000 --- a/src/_oldvideo/components/VideoPlayer.tsx +++ /dev/null @@ -1,180 +0,0 @@ -import { ReactNode, useCallback, useState } from "react"; - -import { AirplayAction } from "@/_oldvideo/components/actions/AirplayAction"; -import { BackdropAction } from "@/_oldvideo/components/actions/BackdropAction"; -import { CastingTextAction } from "@/_oldvideo/components/actions/CastingTextAction"; -import { ChromecastAction } from "@/_oldvideo/components/actions/ChromecastAction"; -import { FullscreenAction } from "@/_oldvideo/components/actions/FullscreenAction"; -import { HeaderAction } from "@/_oldvideo/components/actions/HeaderAction"; -import { KeyboardShortcutsAction } from "@/_oldvideo/components/actions/KeyboardShortcutsAction"; -import { LoadingAction } from "@/_oldvideo/components/actions/LoadingAction"; -import { MiddlePauseAction } from "@/_oldvideo/components/actions/MiddlePauseAction"; -import { MobileCenterAction } from "@/_oldvideo/components/actions/MobileCenterAction"; -import { PageTitleAction } from "@/_oldvideo/components/actions/PageTitleAction"; -import { PauseAction } from "@/_oldvideo/components/actions/PauseAction"; -import { PictureInPictureAction } from "@/_oldvideo/components/actions/PictureInPictureAction"; -import { ProgressAction } from "@/_oldvideo/components/actions/ProgressAction"; -import { SeriesSelectionAction } from "@/_oldvideo/components/actions/SeriesSelectionAction"; -import { ShowTitleAction } from "@/_oldvideo/components/actions/ShowTitleAction"; -import { SkipTimeAction } from "@/_oldvideo/components/actions/SkipTimeAction"; -import { TimeAction } from "@/_oldvideo/components/actions/TimeAction"; -import { VolumeAction } from "@/_oldvideo/components/actions/VolumeAction"; -import { VideoPlayerError } from "@/_oldvideo/components/parts/VideoPlayerError"; -import { PopoutProviderAction } from "@/_oldvideo/components/popouts/PopoutProviderAction"; -import { - VideoPlayerBase, - VideoPlayerBaseProps, -} from "@/_oldvideo/components/VideoPlayerBase"; -import { useVideoPlayerDescriptor } from "@/_oldvideo/state/hooks"; -import { useControls } from "@/_oldvideo/state/logic/controls"; -import { Transition } from "@/components/Transition"; -import { useIsMobile } from "@/hooks/useIsMobile"; - -import { CaptionRendererAction } from "./actions/CaptionRendererAction"; -import { DividerAction } from "./actions/DividerAction"; -import { SettingsAction } from "./actions/SettingsAction"; -import { VolumeAdjustedAction } from "./actions/VolumeAdjustedAction"; - -type Props = VideoPlayerBaseProps; - -function CenterPosition(props: { children: ReactNode }) { - return ( -
- -
- ); -} - -export function CaptionRendererAction({ - isControlsShown, -}: { - isControlsShown: boolean; -}) { - const descriptor = useVideoPlayerDescriptor(); - const source = useSource(descriptor).source; - const videoTime = useProgress(descriptor).time; - const { captionSettings, setCaptionDelay } = useSettings(); - const captions = useRef{t("casting.casting")}
-- {humanizedEpisodeId} - {currentEpisodeInfo?.title} -
- ); -} diff --git a/src/_oldvideo/components/actions/SkipTimeAction.tsx b/src/_oldvideo/components/actions/SkipTimeAction.tsx deleted file mode 100644 index c7c68cc2..00000000 --- a/src/_oldvideo/components/actions/SkipTimeAction.tsx +++ /dev/null @@ -1,49 +0,0 @@ -import { useVideoPlayerDescriptor } from "@/_oldvideo/state/hooks"; -import { useControls } from "@/_oldvideo/state/logic/controls"; -import { useProgress } from "@/_oldvideo/state/logic/progress"; -import { Icons } from "@/components/Icon"; - -import { VideoPlayerIconButton } from "../parts/VideoPlayerIconButton"; - -interface Props { - className?: string; -} - -export function SkipTimeBackwardAction() { - const descriptor = useVideoPlayerDescriptor(); - const controls = useControls(descriptor); - const videoTime = useProgress(descriptor); - - const skipBackward = () => { - controls.setTime(videoTime.time - 10); - }; - - return ( -- {source.source.quality} -
-- {err?.name}: {err?.description} -
-
- {props.onClick ? (
-
-
-
- {t("videoPlayer.popouts.errors.loadingWentWrong", { - seasonTitle: currentSeasonInfo?.title?.toLowerCase(), - })} -
-
-
- {t("videoPlayer.popouts.errors.embedsError")} -
-- {t("videoPlayer.popouts.noEmbeds")} -
-{props.description}
-