Skip to content

feat(player): Add recent live channels switcher to the player. - #3318

Open
redblacker8 wants to merge 5 commits into
recloudstream:masterfrom
redblacker8:feat/live-recents-upstream
Open

redblacker8 wants to merge 5 commits into
recloudstream:masterfrom
redblacker8:feat/live-recents-upstream

Conversation

@redblacker8

@redblacker8 redblacker8 commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Adds a recent live channels list inside the player, reusing the existing
episodes overlay instead of introducing a new UI element. The overlay can be
opened from the episodes button or with the CH+/CH- keys, and keeps TV focus
inside the channel list.

Changes

  • Persist the last 15 live channels globally, per CloudStream account.
  • Record a channel only after playback actually starts.
  • Show the episodes/recents button only when at least 2 channels are available.
  • Switch channels in the same player and reset quality/subtitle state.
  • Long-press to remove a channel, plus an option to clear all recents.
  • Open the recent channels overlay with CH+/CH- (and MEDIA_NEXT/MEDIA_PREVIOUS)
    on live streams, where there is no next/previous episode.
  • Move TV focus into the overlay and onto the current channel, and stop
    swallowing D-pad navigation while the overlay is open.
  • Keep the standard playback error toast (error name and code, e.g. 2004)
    visible while an automatic live retry runs, with the reconnecting notice
    appended to the same toast.
  • Store only the provider reference (data) and an optional pageUrl;
    never persist signed stream URLs, headers, or DRM data.
  • Re-extract the current channel automatically when its link expires or fails.
  • Fall back to api.load(pageUrl) when the provider reference itself is stale.
  • Retry expired live links up to 2 times before surfacing the player error.

Notes

  • No provider changes are required; it works with existing TvType.Live extensions.
  • Live playback remains excluded from watch history and resume watching.
  • The regular VOD episodes overlay is unchanged.

@redblacker8
redblacker8 force-pushed the feat/live-recents-upstream branch from 0eb69b7 to f1b5411 Compare November 10, 2026 06:50
@redblacker8
redblacker8 force-pushed the feat/live-recents-upstream branch from f1b5411 to 5523d1e Compare November 10, 2026 06:52
@redblacker8
redblacker8 force-pushed the feat/live-recents-upstream branch from adc392a to 127fea3 Compare November 10, 2026 22:49

This branch has not been deployed

No deployments
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