Repository navigation
fix(media-server): import Loom HLS audio when the video playlist is empty - #4853
Open
richiemcilroy wants to merge 2 commits into
Open
richiemcilroy wants to merge 2 commits into
richiemcilroy wants to merge 2 commits into
Conversation
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub. 1 Skipped Deployment
|
|
Sandchest reviewed Sandchest reviews every change for vulnerabilities an attacker could use · Review details |
Member
Author
|
@greptileai review |
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

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]apps/media-server/src/loom-importer/streaming.ts:280an empty playlist is skipped for either track, not only audio.apps/media-server/src/loom-importer/streaming.ts:295fails 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.hls-empty-videomirrors 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/5

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.
Reviews (2) · Last reviewed commit: "test(media-server): drop the timeout ove..." · Reviewed by Greptile