Skip to content

fix(player): end playback when a live stream ends - #2338

Merged
A-EDev merged 1 commit into
fix/live-url-refreshfrom
fix/live-stream-end
Nov 23, 2026
Merged

A-EDev merged 1 commit into
fix/live-url-refreshfrom
fix/live-stream-end

Conversation

@A-EDev

@A-EDev A-EDev commented Nov 23, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Live segments carry no end marker: the head just stops advancing. When it has not moved for three segments, one player request checks whether the stream is still live, rechecked every 30 s while it stays still.
  • An ended stream's manifest gets its length and stops refreshing, so Media3 plays to the last segment and ends; the player then shows it as ended instead of seeking back to a live edge that is gone.

Stacked on #2337; merge from the top of the stack down.

Related issue

Part of #1385.

Change type

  • Bug fix
  • Feature
  • Refactor or maintenance
  • Build, packaging, or CI
  • Documentation

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 skipped
  • I ran any additional flavor-specific build or test tasks affected by this change: ktlintCheck, :app:compileFossDebugKotlin passed
  • I manually tested the affected behavior on an Android device or emulator. The end was forced with a debug-only change that marks the stream ended after a minute: playback ran to that segment and ended, with no seek back to live.

Test device and Android version: Emulator, Android 17 (API 37), phone 1080x2400

Screenshots or recordings

Risk and compatibility

  • Only after a head stops advancing. One player request per 30 s while it is stopped.

  • 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.

@github-actions github-actions Bot added documentation Improvements or additions to documentation player Video and audio playback labels Nov 23, 2026
@A-EDev
A-EDev merged commit d5ee4d2 into fix/live-url-refresh Nov 23, 2026
1 check passed
@A-EDev
A-EDev deleted the fix/live-stream-end branch November 23, 2026 19:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation player Video and audio playback

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant