Skip to content

fix: HLS streams slow to start and often fail (#1303) - #1326

Open
HermesYP wants to merge 3 commits into
harborstremio:mainfrom
HermesYP:fix/hls-stream-startup
Open

HermesYP wants to merge 3 commits into
harborstremio:mainfrom
HermesYP:fix/hls-stream-startup

Conversation

@HermesYP

Copy link
Copy Markdown

Summary

Fix HLS streams taking minutes to start or failing entirely. HLS URLs were getting VOD cache settings (5 min/512MB pre-download) instead of lightweight HLS-appropriate settings.

Changes

  • src-tauri/src/mpv.rs: Detect .m3u8 URLs and apply HLS cache settings (cache-secs=10, demuxer-max-bytes=16MiB)
  • src/lib/streams/parser/parser-cache-flags.ts: HLS cache flag detection

Verification

  • TypeScript typecheck passes

Closes #1303

HLS streams were using VOD cache settings (cache-secs=300,
demuxer-max-bytes=512MiB), forcing mpv to pre-download 5 minutes
of segments before playback.

Add HLS detection via .m3u8 URL check and apply HLS-appropriate
settings: cache-secs=10, demuxer-max-bytes=16MiB, demuxer-readahead-secs=5.

Fixes harborstremio#1303
When applying a picture adjustment preset, all PICTURE_KEYS are now
reset to defaults before the preset values are applied, instead of
merging presets on top of current slider values.

Fixes issue where presets were cumulative — e.g. applying "Punchier color"
after "Brighten dark movies" would retain the gamma/brightness changes
instead of replacing them.
@Praneeth-Gandodi

Copy link
Copy Markdown

@harborstremio just wanted to check if you could take a look at this PR and merge it if it works, since it may resolve the issue I reported in #1303. I saw you’ve been releasing betas over the past couple of days so i thought I'd ask.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants