Skip to content

fix(media-server): import Loom HLS audio when the video playlist is empty - #4853

Open
richiemcilroy wants to merge 2 commits into
mainfrom
fix/loom-import-empty-video-playlist
Open

richiemcilroy wants to merge 2 commits into
mainfrom
fix/loom-import-empty-video-playlist

Conversation

@richiemcilroy

@richiemcilroy richiemcilroy commented Dec 4, 2026 •

Copy link
Copy Markdown
Member

Some Loom recordings are audio only but still publish an HLS master with video variants whose VOD playlists have no segments. The importer treated any empty video playlist as fatal, so these failed with HLS playlist has no media segments.

flowchart LR
  M[HLS master] --> V{video playlist empty?}
  V -- no --> N[import as before]
  V -- yes --> A{audio playlist has segments?}
  A -- yes --> O[existing audio-only path: still video + AAC]
  A -- no --> E[fail: no media segments]
Loading
  • apps/media-server/src/loom-importer/streaming.ts:280 an empty playlist is skipped for either track, not only audio.
  • apps/media-server/src/loom-importer/streaming.ts:295 fails when no track has segments; the audio rendition is dropped only when video survives, so an empty video with live audio reaches the existing audio-only branch.
  • New integration fixture hls-empty-video mirrors the Loom layout (empty video VOD playlist, populated audio rendition) and asserts a 7 s H.264 + AAC import with no video segment requests. A source with every rendition empty still fails.

Confidence Score: 5/5RetriggerView in Greptile

The PR appears safe to merge, with no outstanding findings.

Summary

Allows Loom HLS imports to keep populated audio when the video playlist is empty.

  • Loom imports keep playable audio when the video playlist is empty.

Reviews (2) · Last reviewed commit: "test(media-server): drop the timeout ove..." · Reviewed by Greptile

@vercel
vercel Bot temporarily deployed to Preview – cap-status December 4, 2026 13:45 Inactive
@vercel

vercel Bot commented Dec 4, 2026 •

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
cap-status Skipped Skipped Dec 4, 2026 1:49pm UTC

@sandchest-com

sandchest-com Bot commented Dec 4, 2026 •

Copy link
Copy Markdown

Sandchest

Sandchest reviewed 8154dca: nothing exploitable found in this change.

Sandchest reviews every change for vulnerabilities an attacker could use · Review details

@capy-ai capy-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Capy found 1 potential issue (1 medium).

View 1 other finding in Capy.

Open in Capy

@vercel
vercel Bot temporarily deployed to Preview – cap-status December 4, 2026 13:49 Inactive
@richiemcilroy

Copy link
Copy Markdown
Member Author

@greptileai review

@capy-ai capy-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Capy found no issues.

Open in Capy

This branch was previously deployed

1 inactive deployment
Preview – cap-status — 8154dca9 Deployed Dec 4, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant