[desktop] Enable HLS generation for internal users (#5913)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user