fix:改进atx usb 继电器适配;修复 webrtc 无法建立连接问题;网页样式优化

This commit is contained in:
mofeng-git
2026-05-05 00:52:16 +08:00
parent 6723f432a3
commit c27d3a6703
27 changed files with 1388 additions and 709 deletions

View File

@@ -0,0 +1,11 @@
import type { StreamDeviceLostEventData } from '@/types/websocket'
const AUDIO_STATE_REASONS = new Set(['audio_device_lost', 'audio_reconnecting'])
export function isAudioDeviceLostStateReason(reason: string | null | undefined): boolean {
return typeof reason === 'string' && AUDIO_STATE_REASONS.has(reason)
}
export function isAudioStreamDeviceLostPayload(data: StreamDeviceLostEventData): boolean {
return data.kind === 'audio'
}