Repository navigation
feat(player): play live streams from their segments with the full DVR window - #2336
Merged
Merged
Conversation
9 of 14 tasks
fix(player): end playback when a live stream ends
fix(player): refresh live stream URLs before they expire
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.
Summary
&sq=N), through a Media3 DASH source whose manifest is written locally from the segment clock. The window is YouTube's 12 hours instead of the HLS playlist's 60 minutes. HLS stays as the fallback when the response has no segment formats or the head cannot be read.Emulator, LiveNOW FOX (24/7 news) and The Good Life Radio (24/7 music):
Stacked on #2335; merge from the top of the stack down.
Related issue
Closes #1385
Change type
Validation
Run on the top of the stack (
fix/live-stream-end), which contains this change:./gradlew :app:assembleGithubDebug: passed./gradlew :app:testGithubDebugUnitTest: 7,098 tests, 0 failures, 46 skippedktlintCheck,:app:compileFossDebugKotlinpassedTest device and Android version: Emulator, Android 17 (API 37), phone 1080x2400
Screenshots or recordings
Risk and compatibility
Playback path for live streams. The template uses the stream's average segment length, so on streams whose segments vary it drifts from the media by about 15 s an hour of watching (measured), in the direction that keeps playback correct; deep seeks on such streams can land up to about a minute off.
After a stall on a stream with DVR, playback stays behind live (as on YouTube) instead of creeping back at 1.03x; the grey badge shows it and a tap returns to live.
Live streams whose URLs need an
ntransform (ANDROID_VR) stay on HLS.The change does not introduce secrets, private data, or unexpected telemetry.
New user-facing text uses Android string resources.
Dependency and lockfile changes are intentional and limited to this PR.
Room schema changes include the required version bump and migration, or this PR does not change the Room schema.
Breaking changes and upgrade steps are clearly documented.