[desktop] Enable HLS generation for internal users (#5913)

This commit is contained in:
Manav Rathi
2025-05-15 07:49:41 +05:30
committed by GitHub
3 changed files with 3 additions and 9 deletions

View File

@@ -255,8 +255,8 @@ export const syncUpdatedFileDataFileIDs = async (
for (const fd of diff) {
lastUpdatedAt = Math.max(lastUpdatedAt, fd.updatedAt);
// While we could prune isDeleted entries here, we can also rely
// on the the pruning that happens when the trash gets synced.
// See: [Note: Pruning stale status-diff entries]
// on the pruning that happens when the trash gets synced. See:
// [Note: Pruning stale status-diff entries]
if (fd.type == type && !fd.isDeleted) {
fileIDs.add(fd.fileID);
}

View File

@@ -1055,8 +1055,6 @@ const extractImageOrVideoMetadata = async (
settingsSnapshot().isInternalUser
) {
duration = await tryDetermineVideoDuration(uploadItem);
// TODO(HLS):
log.debug(() => ["extracted duration", duration]);
}
// To avoid introducing malformed data into the metadata fields (which the

View File

@@ -216,14 +216,10 @@ export const isHLSGenerationSupported = () =>
// Keep this check fast, we get called many times.
isDesktop &&
// TODO(HLS):
process.env.NEXT_PUBLIC_ENTE_WIP_VIDEO_STREAMING &&
settingsSnapshot().isInternalUser;
// TODO(HLS): Only the isDesktop flag is needed eventually.
export const isHLSGenerationSupportedTemp = () =>
isDesktop &&
// TODO(HLS):
process.env.NEXT_PUBLIC_ENTE_WIP_VIDEO_STREAMING;
export const isHLSGenerationSupportedTemp = () => isDesktop;
/**
* Initialize the video processing subsystem if the user has enabled HLS