Skip to content

fix(web): resume HLS playback when signed segment URLs expire - #3613

Open
yashranaway wants to merge 3 commits into
CapSoftware:mainfrom
yashranaway:fix/share-playback-r11
Open

yashranaway wants to merge 3 commits into
CapSoftware:mainfrom
yashranaway:fix/share-playback-r11

Conversation

@yashranaway

@yashranaway yashranaway commented Nov 1, 2026 •

Copy link
Copy Markdown
Contributor

hls segment urls are signed for an hour. when they expired mid watch (long video, or a tab paused for a while) the player did refresh the playlist, but reloading the same source rebuilt the media source, so the video jumped back to 0:00, paused, at 1x. and if a segment was refused for good (s3 also returns 403 for a missing object) it reloaded the playlist in a tight loop, i saw over a thousand playlist requests in 45 seconds, each one re-signing every segment on the server.

now it keeps the position, paused state and speed across the refresh and resumes, and it remembers which fragment triggered the reload so the same fragment refused again with fresh urls falls through to the normal retry and error path instead of looping. mp4 playback is untouched.

RetriggerView in GreptileConfidence Score: 5/5

The PR appears safe to merge, with both previous findings addressed and no new actionable issues found.

Summary

The PR preserves playback position, speed, and play state when signed HLS URLs expire.

  • HLS playback keeps its place when signed segment URLs expire.

Reviews (4) · Last reviewed commit: "fix(web): key the URL refresh guard on f..." · Reviewed by Greptile

@vercel

vercel Bot commented Nov 1, 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 Nov 1, 2026 8:46am UTC

@vercel
vercel Bot temporarily deployed to Preview – cap-status November 1, 2026 07:33 Inactive
@yashranaway

Copy link
Copy Markdown
Contributor Author

@greptileai review

@yashranaway

Copy link
Copy Markdown
Contributor Author

@greptileai review

@vercel
vercel Bot temporarily deployed to Preview – cap-status November 1, 2026 09:18 Inactive
@yashranaway

Copy link
Copy Markdown
Contributor Author

@greptileai review

@vercel
vercel Bot temporarily deployed to Preview – cap-status November 1, 2026 09:46 Inactive

This branch was previously deployed

1 inactive deployment
Preview – cap-status — 37a5839a Deployed Nov 1, 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