Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Jan 10, 2026

Adds user-configurable control over how many segments are dropped from the initial HLS playlist, allowing tuning of how far behind live the stream starts (improves buffering behavior).

Changes

Proxy Server (sxm.pl)

  • Added --segment-drop NUM CLI option (range: 0-30, default: 3)
  • Updated hardcoded segment removal logic to use configured value
  • Added validation in argument parsing

Plugin Settings

  • Added segment_drop preference with UI control (numeric input, min=0, max=30)
  • Integrated into proxy restart logic
  • Added localization strings (PLUGIN_SIRIUSXM_SEGMENT_DROP, PLUGIN_SIRIUSXM_SEGMENT_DROP_DESC)

Proxy Integration (Proxy.pm)

  • Passes segment_drop preference to sxm.pl via --segment-drop parameter
  • Defaults to 3 for backward compatibility

Usage

# Command line
perl sxm.pl user pass --segment-drop 5

# Or via plugin settings UI

Settings UI

Settings Page

Default value of 3 maintains existing behavior. Higher values increase buffering distance from live edge.


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI and others added 4 commits January 10, 2026 20:26
Co-authored-by: paul-1 <6473457+paul-1@users.noreply.github.com>
Co-authored-by: paul-1 <6473457+paul-1@users.noreply.github.com>
Co-authored-by: paul-1 <6473457+paul-1@users.noreply.github.com>
Co-authored-by: paul-1 <6473457+paul-1@users.noreply.github.com>
Copy link
Contributor Author

Copilot AI commented Jan 10, 2026

Just as a heads up, I was blocked by some firewall rules while working on your feedback. Expand below for details.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • esm.ubuntu.com
    • Triggering command: /usr/lib/apt/methods/https /usr/lib/apt/methods/https (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Copilot AI changed the title [WIP] Optimize playlist handling and caching mechanism Add configurable segment drop for HLS playlist buffering Jan 10, 2026
Copilot AI requested a review from paul-1 January 10, 2026 20:31
@paul-1 paul-1 marked this pull request as ready for review January 10, 2026 21:05
@paul-1 paul-1 merged commit 73c8144 into Optimize_playlist_handling Jan 10, 2026
@paul-1 paul-1 deleted the copilot/sub-pr-56 branch January 10, 2026 21:05
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.

2 participants