diff --git a/frontend/src/components/VideoPanel.vue b/frontend/src/components/VideoPanel.vue index 799e10e..654b53b 100644 --- a/frontend/src/components/VideoPanel.vue +++ b/frontend/src/components/VideoPanel.vue @@ -12,17 +12,21 @@ const streamUrl = ref('') const canRequestFrames = computed(() => props.video?.available === true) const streamFps = computed(() => Math.max(props.video?.fps ?? 0, 30)) -const modeLabel = computed(() => { +const senderProfileLabel = computed(() => { if (!props.video) { - return '正在获取视频状态' + return '发送端 Profile: --' } - if (props.video.source_mode === 'omnisocket-jpeg-live') { - return `${props.video.fps} FPS 实时接收` + return `发送端 Profile: ${props.video.fps} FPS` +}) + +const displayModeLabel = computed(() => { + if (!props.video) { + return '前端显示: 等待状态' } - if (props.video.source_mode === 'omnisocket-waiting') { - return '尚未收到实时视频帧' + if (!canRequestFrames.value) { + return '前端显示: 等待新视频帧' } - return `${props.video.fps} FPS` + return `前端显示: MJPEG Stream (${streamFps.value} FPS 请求)` }) const placeholderText = computed(() => { @@ -77,7 +81,10 @@ watch([streamFps, canRequestFrames], refreshStreamUrl, { immediate: true })