mirror of
https://github.com/linsa-io/linsa.git
synced 2026-01-12 12:20:23 +01:00
Implement WebRTC URL resolution and update stream playback logic across components and API routes
This commit is contained in:
@@ -111,7 +111,11 @@ function StreamPage() {
|
||||
const stream = data?.stream ?? null
|
||||
const playback = stream?.playback ?? null
|
||||
const fallbackPlayback = stream?.hls_url
|
||||
? resolveStreamPlayback({ hlsUrl: stream.hls_url, webrtcUrl: null })
|
||||
? resolveStreamPlayback({
|
||||
hlsUrl: stream.hls_url,
|
||||
webrtcUrl: null,
|
||||
preferWebRtc: false,
|
||||
})
|
||||
: null
|
||||
const activePlayback =
|
||||
playback?.type === "webrtc" && webRtcFailed
|
||||
@@ -179,7 +183,6 @@ function StreamPage() {
|
||||
)
|
||||
}
|
||||
|
||||
const { user } = data
|
||||
const showPlayer =
|
||||
activePlayback?.type === "cloudflare" ||
|
||||
activePlayback?.type === "webrtc" ||
|
||||
|
||||
Reference in New Issue
Block a user