Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Update comments

Manav Rathif01d0ff2748e
diff --git a/desktop/src/main/services/ffmpeg.ts b/desktop/src/main/services/ffmpeg.ts
index ba1f52fbe2..6fc99d85f6 100644
--- a/desktop/src/main/services/ffmpeg.ts
+++ b/desktop/src/main/services/ffmpeg.ts
@@ -144,11 +144,11 @@ export interface FFmpegGenerateHLSPlaylistAndSegmentsResult {
* See: [Note: Preview variant of videos]
* @param inputFilePath The path to a file on the user's local file system. This
- * is the video we want to convert.
+ * is the video we want to generate an streamable HLS playlist for.
*
* @param outputPathPrefix The path to unique, unused and temporary prefix on
- * the user's local file system - we should write the generated HLS playlist and
- * video segments under this prefix.
+ * the user's local file system. This function will write the generated HLS
+ * playlist and video segments under this prefix.
*
* @returns The paths to two files on the user's local file system - one
* containing the generated HLS playlist, and the other containing the
@@ -165,9 +165,9 @@ export const ffmpegGenerateHLSPlaylistAndSegments = async (
// name "output.m3u8".
//
// ffmpeg will automatically place the segments in a file with the same base
- // name as the playlist, but with a ".ts" extension. Since we use the
- // "single_file" option, all the segments will be placed in the same ".ts"
- // file, which will be named "output.ts".
+ // name as the playlist, but with a ".ts" extension. And since we use the
+ // "single_file" option, all the segments will be placed in a file named
+ // "output.ts".
await fs.mkdir(outputPathPrefix);
diff --git a/web/packages/gallery/services/file-data.ts b/web/packages/gallery/services/file-data.ts
index c2b6101c04..48ddb46416 100644
--- a/web/packages/gallery/services/file-data.ts
+++ b/web/packages/gallery/services/file-data.ts
@@ -265,14 +265,15 @@ export const getFilePreviewDataUploadURL = async (file: EnteFile) => {
* - The object ID of an (already uploaded) "file preview data" file containing
* the video segments.
*
- * This function is similar to {@link putFileData}, except it will save or
- * update the both the playlist and the reference to its associated segment file
+ * This function is similar to {@link putFileData}, except it will save (or
+ * update) both the playlist, and the reference to its associated segment file,
* associated with the given {@link file}. The playlist data will be end-to-end
* encrypted using the given {@link file}'s key before uploading.
*
* @param file {@link EnteFile} which this data is associated with.
*
- * @param playlistData The HLS playlist contents, as a {@link Blob}.
+ * @param playlistData The playlist data, suitably encoded in a form ready for
+ * encryption.
*
* @param objectID Object ID of an already uploaded "file preview data" (see
* {@link getFilePreviewDataUploadURL}).