diff --git a/js/components/src/components/mobile-player/shared.tsx b/js/components/src/components/mobile-player/shared.tsx index 1187f36e0..15e2aca26 100644 --- a/js/components/src/components/mobile-player/shared.tsx +++ b/js/components/src/components/mobile-player/shared.tsx @@ -36,9 +36,10 @@ export function srcToUrl( let outUrl: string; if (protocol === PlayerProtocol.HLS) { if (props.selectedRendition === "auto") { - outUrl = `${url}/api/playback/${props.src}/hls/index.m3u8`; + outUrl = `${url}/xrpc/place.stream.playback.getLivePlaylist?streamer=${props.src}`; } else { - outUrl = `${url}/api/playback/${props.src}/hls/index.m3u8?rendition=${props.selectedRendition || "source"}`; + // todo: re-implement track selection here + outUrl = `${url}/xrpc/place.stream.playback.getLivePlaylist?streamer=${props.src}`; } } else if (protocol === PlayerProtocol.PROGRESSIVE_MP4) { outUrl = `${url}/api/playback/${props.src}/stream.mp4`; diff --git a/pkg/api/playback.go b/pkg/api/playback.go index 055cee5af..275b775bb 100644 --- a/pkg/api/playback.go +++ b/pkg/api/playback.go @@ -174,7 +174,6 @@ func NoCache(h httprouter.Handle) httprouter.Handle { } } - // thumbnailMaxAge is how stale a thumbnail may be before we treat the user as // offline and stop serving it. It must comfortably exceed thumbnailInterval (the // rate at which live thumbnails are refreshed) to avoid flickering mid-stream. diff --git a/pkg/director/director.go b/pkg/director/director.go index 1ff38d4ef..82ce16fe6 100644 --- a/pkg/director/director.go +++ b/pkg/director/director.go @@ -109,4 +109,3 @@ func (d *Director) Start(ctx context.Context) error { } } } -