This commit is contained in:
Manav Rathi
2025-03-18 19:26:30 +05:30
parent 4ece954c3a
commit 08594222e0
3 changed files with 19 additions and 4 deletions

View File

@@ -8,6 +8,7 @@ import { LoadingButton } from "@/base/components/mui/LoadingButton";
import { useIsSmallWidth } from "@/base/components/utils/hooks";
import { type ModalVisibilityProps } from "@/base/components/utils/modal";
import { useBaseContext } from "@/base/context";
import { isDevBuild } from "@/base/env";
import { lowercaseExtension } from "@/base/file-name";
import { formattedListJoin, ut } from "@/base/i18n";
import type { LocalUser } from "@/base/local-user";
@@ -53,6 +54,7 @@ import React, {
useRef,
useState,
} from "react";
import { hlsPlaylistForFile } from "../../services/video";
import {
fileInfoExifForFile,
updateItemDataAlt,
@@ -518,6 +520,15 @@ export const FileViewer: React.FC<FileViewerProps> = ({
}
})();
if (
isDevBuild &&
process.env.NEXT_PUBLIC_ENTE_WIP_VIDEO_STREAMING
) {
if (file.metadata.fileType == FileType.video) {
void hlsPlaylistForFile(file);
}
}
const annotation: FileViewerFileAnnotation = {
fileID,
isOwnFile,