Skip to content

Prefer player default live position for HLS/DASH#2547

Open
NivinCNC wants to merge 1 commit intorecloudstream:masterfrom
NivinCNC:fix-live-detect
Open

Prefer player default live position for HLS/DASH#2547
NivinCNC wants to merge 1 commit intorecloudstream:masterfrom
NivinCNC:fix-live-detect

Conversation

@NivinCNC
Copy link
Contributor

@NivinCNC NivinCNC commented Mar 1, 2026

When starting a single HLS (M3U8) or DASH stream and no explicit start position was provided (playbackPosition == 0), set playbackPosition to TIME_UNSET so ExoPlayer can choose its default/live position. This prevents forcing a 0 ms start for live/non-playlist streams and lets the player resume at the correct live/default offset.

I made this PR because when i play HLS/DASH live streams that has larger Playback window eg: 1hr, the stream plays from 0ms rather than playing live which always made to make me fastforward to live. This PR fixes this

When starting a single HLS (M3U8) or DASH stream and no explicit start position was provided (playbackPosition == 0), set playbackPosition to TIME_UNSET so ExoPlayer can choose its default/live position. This prevents forcing a 0 ms start for live/non-playlist streams and lets the player resume at the correct live/default offset.
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