From 68936d64e3237cd3d79fa928382c28d06643f2c2 Mon Sep 17 00:00:00 2001 From: xiaosi <2652281683@qq.com> Date: Thu, 3 Sep 2026 16:31:34 +0800 Subject: [PATCH] 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. --- src/views/MediaView/MediaView.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/MediaView/MediaView.vue b/src/views/MediaView/MediaView.vue index e2903e3..174a2ca 100644 --- a/src/views/MediaView/MediaView.vue +++ b/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 }