mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-10-28 00:10:50 +08:00
fix: 修复无信号状态同步与采集管线阻塞
- 使用非阻塞 V4L2 句柄并类型化采集错误 - 完善视频管线生命周期,避免复用停止中的管线 - 区分音视频事件并支持 REST/WebSocket 状态快照 - 修复信号丢失后保留最后一帧及刷新后黑屏问题 - 优化无信号提示、状态展示优先级及相关界面细节 - 降低重复 OTG 错误日志级别
This commit is contained in:
@@ -10,6 +10,7 @@ import type {
|
||||
ComputerUseStartRequest,
|
||||
} from '@/types/generated'
|
||||
import { useHidWebSocket, type HidKeyboardEvent, type HidMouseEvent } from '@/composables/useHidWebSocket'
|
||||
import type { StreamSignalReason, StreamState } from '@/types/websocket'
|
||||
|
||||
const API_BASE = '/api'
|
||||
|
||||
@@ -299,18 +300,8 @@ export interface VideoEncoderSelfCheckResponse {
|
||||
export const streamApi = {
|
||||
status: () =>
|
||||
request<{
|
||||
state:
|
||||
| 'uninitialized'
|
||||
| 'ready'
|
||||
| 'streaming'
|
||||
| 'no_signal'
|
||||
| 'no_cable'
|
||||
| 'no_sync'
|
||||
| 'out_of_range'
|
||||
| 'device_lost'
|
||||
| 'recovering'
|
||||
| 'device_busy'
|
||||
| 'error'
|
||||
state: StreamState
|
||||
reason?: StreamSignalReason | null
|
||||
device: string | null
|
||||
format: string | null
|
||||
resolution: [number, number] | null
|
||||
|
||||
Reference in New Issue
Block a user