Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

chore(web): drop narrating comments

Richie McIlroy36fc8f1f02a4
diff --git a/apps/web/__tests__/fixtures/fmp4.ts b/apps/web/__tests__/fixtures/fmp4.ts
index a14c23eb5..6fca6fbf8 100644
--- a/apps/web/__tests__/fixtures/fmp4.ts
+++ b/apps/web/__tests__/fixtures/fmp4.ts
@@ -89,7 +89,6 @@ export function moof({
u32(1),
...(tfhdDefaultDuration === undefined ? [] : [u32(tfhdDefaultDuration)]),
);
- // Each sample carries a duration (when present) and a size, like FFmpeg's fragments.
const trunFlags = 0x01 | 0x200 | (durations ? 0x100 : 0);
const samples = Array.from({ length: count }, (_, index) =>
durations ? concat([u32(durations[index] ?? 0), u32(100)]) : u32(100),
diff --git a/apps/web/lib/desktop-manifest-rebuild.ts b/apps/web/lib/desktop-manifest-rebuild.ts
index b78584a64..ae36f8d44 100644
--- a/apps/web/lib/desktop-manifest-rebuild.ts
+++ b/apps/web/lib/desktop-manifest-rebuild.ts
@@ -340,7 +340,6 @@ export async function rebuildMissingManifest(
): Promise<ManifestRebuildResult> {
const inspected = await inspectMissingManifestRecording(videoId);
if (inspected.status === "incomplete" && !dryRun) {
- // Recording why it was refused keeps it out of the next candidate batch.
await db()
.update(videoUploads)
.set({
diff --git a/apps/web/lib/fragmented-mp4-duration.ts b/apps/web/lib/fragmented-mp4-duration.ts
index 7371f7b6b..490c2ff8e 100644
--- a/apps/web/lib/fragmented-mp4-duration.ts
+++ b/apps/web/lib/fragmented-mp4-duration.ts
@@ -152,7 +152,6 @@ function moofTicks(
return ticks;
}
-// Walks top-level boxes with ranged reads, so media data is skipped instead of downloaded.
export async function readFragmentDuration(
read: ReadRange,
size: number,