fix(control): streaming=true 即隐藏覆盖层(去掉 input_fps 判断)
input_rtsp 节点 input_fps 可能为 0 但实际在出帧(HLS 正常播放), 导致'连接中'覆盖层盖在画面上。streaming=true 已是 media 实时 拉流状态,直接隐藏。
This commit is contained in:
parent
d437fbdc49
commit
8663f8cee4
@ -210,13 +210,9 @@
|
||||
overlay.style.display = 'flex';
|
||||
return;
|
||||
}
|
||||
if (status.streaming && status.input_fps > 0) {
|
||||
overlay.style.display = 'none'; // 有画面,隐藏覆盖层
|
||||
return;
|
||||
}
|
||||
if (status.streaming) {
|
||||
overlay.innerHTML = '<div class="video-status-text connecting">连接中</div>';
|
||||
overlay.style.display = 'flex';
|
||||
// streaming=true 表示正在接收视频帧(media 实时状态),有画面,隐藏覆盖层
|
||||
overlay.style.display = 'none';
|
||||
return;
|
||||
}
|
||||
overlay.innerHTML = '<div class="video-status-text offline">离线</div>' +
|
||||
|
||||
@ -82,13 +82,9 @@ function loadAll() {
|
||||
overlay.style.display = 'flex';
|
||||
return;
|
||||
}
|
||||
if (status.streaming && status.input_fps > 0) {
|
||||
overlay.style.display = 'none';
|
||||
return;
|
||||
}
|
||||
if (status.streaming) {
|
||||
overlay.innerHTML = '<div class="video-status-text connecting">连接中</div>';
|
||||
overlay.style.display = 'flex';
|
||||
// streaming=true 表示正在接收视频帧(media 实时状态),有画面,隐藏覆盖层
|
||||
overlay.style.display = 'none';
|
||||
return;
|
||||
}
|
||||
overlay.innerHTML = '<div class="video-status-text offline">无视频输出</div>' +
|
||||
|
||||
@ -1,3 +1,3 @@
|
||||
@echo off
|
||||
cd /d "C:\Users\Tellme\apps\safesight\safesight-edge\scripts"
|
||||
cd /d "C:\Users\Tellme\apps\safesight\edge\scripts"
|
||||
uv run --with flask mock_alarm_server.py
|
||||
|
||||
Loading…
Reference in New Issue
Block a user