Browse Source

fix: skip fake playUrl writes in Media ensurePlayUrl

Preserve the control-plane toast and avoid treating fake:// as a
real playable URL for open/toggle state.
main
xiaosi 2 weeks ago
parent
commit
68936d64e3
  1. 2
      src/views/MediaView/MediaView.vue

2
src/views/MediaView/MediaView.vue

@ -187,7 +187,7 @@ async function ensurePlayUrl(dockId, sessionId, { force = false } = {}) {
if (disposed || seq !== openSeq || activeLive.sessionId !== sessionId) return play
const nowSec = Math.floor(Date.now() / 1000)
const expiresAt = Number(play?.expiresAt) || nowSec + PLAY_EXPIRE_FALLBACK_SEC
if (play?.playUrl) {
if (play?.playUrl && !String(play.playUrl).startsWith('fake://')) {
activeLive.playUrl = play.playUrl
activeLive.playUrlExpiresAt = expiresAt
}

Loading…
Cancel
Save