fix(web): 修复 WebRTC 首帧状态与视频状态判定

This commit is contained in:
mofeng-git
2026-03-27 10:44:59 +08:00
parent c8fd3648ad
commit e20136a5ab
2 changed files with 8 additions and 4 deletions

View File

@@ -174,6 +174,10 @@ const videoStatus = computed<'connected' | 'connecting' | 'disconnected' | 'erro
if (videoError.value) return 'error'
if (videoLoading.value) return 'connecting'
if (videoMode.value !== 'mjpeg') {
if (webrtc.isConnecting.value) return 'connecting'
if (webrtc.isConnected.value) return 'connected'
}
if (systemStore.stream?.online) return 'connected'
return 'disconnected'
})