feat: implement HLS streaming support in VideoPlayer and enhance stream URL handling
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user