+
@@ -152,13 +153,13 @@ export function VideoPlayer(props: Props) {
<>
-
+
>
diff --git a/src/video/components/actions/DownloadAction.tsx b/src/video/components/actions/DownloadAction.tsx
index 11435024..bffca2e1 100644
--- a/src/video/components/actions/DownloadAction.tsx
+++ b/src/video/components/actions/DownloadAction.tsx
@@ -1,6 +1,12 @@
import { Icons } from "@/components/Icon";
import { useVideoPlayerDescriptor } from "@/video/state/hooks";
import { useSource } from "@/video/state/logic/source";
+import { MWStreamType } from "@/backend/helpers/streams";
+import { normalizeTitle } from "@/utils/normalizeTitle";
+import { useIsMobile } from "@/hooks/useIsMobile";
+import { useTranslation } from "react-i18next";
+
+import { useCurrentSeriesEpisodeInfo } from "../hooks/useCurrentSeriesEpisodeInfo";
import { VideoPlayerIconButton } from "../parts/VideoPlayerIconButton";
interface Props {
@@ -10,12 +16,31 @@ interface Props {
export function DownloadAction(props: Props) {
const descriptor = useVideoPlayerDescriptor();
const sourceInterface = useSource(descriptor);
+ const { isSeries, humanizedEpisodeId, meta } =
+ useCurrentSeriesEpisodeInfo(descriptor);
+ const { isMobile } = useIsMobile();
+ const { t } = useTranslation();
+
+ /* if (!meta) return null;
+
+ const title = isSeries
+ ? `${meta?.meta.title} - ${humanizedEpisodeId}`
+ : meta?.meta.title;
+ */
+ const isHLS = sourceInterface.source?.type === MWStreamType.HLS;
return (
-
+
);
diff --git a/src/video/components/parts/VideoPlayerIconButton.tsx b/src/video/components/parts/VideoPlayerIconButton.tsx
index 9193f635..7db20b03 100644
--- a/src/video/components/parts/VideoPlayerIconButton.tsx
+++ b/src/video/components/parts/VideoPlayerIconButton.tsx
@@ -10,6 +10,7 @@ export interface VideoPlayerIconButtonProps {
active?: boolean;
wide?: boolean;
noPadding?: boolean;
+ disabled?: boolean;
}
export const VideoPlayerIconButton = forwardRef<
@@ -21,13 +22,21 @@ export const VideoPlayerIconButton = forwardRef<