Frontend: update for SourceUri + Playout Service HLS #12
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Parent
#2
What to build
Update the k-tv-frontend to work with the new architecture. The backend's stream endpoint now returns a SourceUri (not a direct stream URL), and the Playout Service serves HLS streams.
Changes:
app/api/stream/[channelId]/route.ts) should point to the Playout Service's HLS endpoint instead of resolving a provider stream URLuseStreamUrlhook should return the Playout Service's playlist URL for the channel (e.g.,{PLAYOUT_URL}/playout/:channelId/playlist.m3u8)NEXT_PUBLIC_PLAYOUT_URLenv var for the Playout Service base URLAcceptance criteria
NEXT_PUBLIC_PLAYOUT_URLenv var configures the playout endpointBlocked by