feat: implement HLS streaming support in VideoPlayer and enhance stream URL handling

This commit is contained in:
2026-03-11 20:51:06 +01:00
parent 4789dca679
commit b813594059
7 changed files with 161 additions and 33 deletions

View File

@@ -80,9 +80,13 @@ export function findNextSlot(
* Returns null when the channel is in a gap (no-signal / 204).
*/
/**
* slotId is in the query key so the URL refetches when the playing item
* changes (new slot starts), but stays stable while the same item runs —
* no mid-item restarts.
* Resolves the stream URL for the current slot, with StartTimeTicks set so
* Jellyfin begins transcoding at the correct broadcast offset.
*
* slotId is in the query key: the URL refetches when the item changes (new
* slot), but stays stable while the same slot is playing — no mid-item
* restarts. offsetSecs is captured once when the query first runs for a
* given slot, so 30-second broadcast refetches don't disturb playback.
*/
export function useStreamUrl(
channelId: string | undefined,