mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-07-29 15:31:46 +08:00
feat: 完善 USB UVC 设备异常处理,添加 USB 设备复位功能
This commit is contained in:
@@ -328,6 +328,14 @@ export default {
|
||||
title: 'Video channel busy',
|
||||
detail: 'Applying a new configuration or another component is using the device, please wait…',
|
||||
},
|
||||
uvc_usb_error: {
|
||||
title: 'USB capture transport error',
|
||||
detail: 'The USB capture device encountered a protocol error (EPROTO). You can try resetting the device from Settings → Environment → USB Devices.',
|
||||
},
|
||||
uvc_capture_stall: {
|
||||
title: 'UVC capture stalled',
|
||||
detail: 'Check the device connection. If already connected, try changing the capture format and resetting the device.',
|
||||
},
|
||||
reason: {
|
||||
no_cable: 'HDMI cable not detected — check the cable and that the target is powered on',
|
||||
no_sync: 'Unstable signal: timings could not be locked — try a lower resolution or refresh rate',
|
||||
@@ -337,6 +345,9 @@ export default {
|
||||
device_lost: 'Video node disappeared, waiting for the driver to recover',
|
||||
config_changing: 'Applying new configuration',
|
||||
mode_switching: 'Switching video mode',
|
||||
uvc_usb_error:
|
||||
'Try another USB port or cable, avoid hubs, or reconnect the device. You can also reset the device from Settings → Environment → USB Devices.',
|
||||
uvc_capture_stall: '',
|
||||
},
|
||||
},
|
||||
// WebRTC
|
||||
@@ -836,6 +847,21 @@ export default {
|
||||
currentHardwareEncoder: 'Current Hardware Encoder',
|
||||
none: 'None',
|
||||
},
|
||||
usbDevices: {
|
||||
title: 'USB Devices',
|
||||
desc: 'View connected USB devices and reset them to recover from errors',
|
||||
refresh: 'Refresh',
|
||||
loadFailed: 'Failed to load USB device list',
|
||||
noDevices: 'No USB devices found',
|
||||
colDevice: 'Device',
|
||||
colSpeed: 'Speed',
|
||||
colVideo: 'Video',
|
||||
colAction: 'Action',
|
||||
reset: 'Reset',
|
||||
resetConfirmTitle: 'Confirm USB Device Reset',
|
||||
resetConfirmDesc: 'This will reset USB device "{device}" by cycling its authorized attribute. All connections to this device will be temporarily interrupted. Continue?',
|
||||
resetAction: 'Reset Device',
|
||||
},
|
||||
// WebRTC / ICE
|
||||
webrtcSettings: 'WebRTC Settings',
|
||||
webrtcSettingsDesc: 'Configure STUN/TURN servers for NAT traversal',
|
||||
|
||||
@@ -327,6 +327,14 @@ export default {
|
||||
title: '视频通道忙',
|
||||
detail: '正在切换配置或被其他组件占用,请稍候…',
|
||||
},
|
||||
uvc_usb_error: {
|
||||
title: 'USB 采集传输异常',
|
||||
detail: 'USB 采集卡遇到协议错误(EPROTO),可在 设置 → 环境 → USB 设备 中尝试复位。',
|
||||
},
|
||||
uvc_capture_stall: {
|
||||
title: 'UVC 采集超时',
|
||||
detail: '检查设备连接,若设备已连接,可尝试修改采集格式并复位设备。',
|
||||
},
|
||||
reason: {
|
||||
no_cable: '未检测到 HDMI 线缆,请检查连接或被控机是否已开机',
|
||||
no_sync: '信号不稳定,无法锁定时序,可尝试降低被控机分辨率/刷新率',
|
||||
@@ -336,6 +344,9 @@ export default {
|
||||
device_lost: '视频节点丢失,等待驱动恢复',
|
||||
config_changing: '正在应用新配置',
|
||||
mode_switching: '正在切换视频模式',
|
||||
uvc_usb_error:
|
||||
'可尝试更换 USB 口或线、避免 HUB、或重新插拔设备;也可在 设置 → 环境 → USB 设备 中复位。',
|
||||
uvc_capture_stall: '',
|
||||
},
|
||||
},
|
||||
// WebRTC
|
||||
@@ -835,6 +846,21 @@ export default {
|
||||
currentHardwareEncoder: '当前硬件编码器',
|
||||
none: '无',
|
||||
},
|
||||
usbDevices: {
|
||||
title: 'USB 设备',
|
||||
desc: '查看已连接的 USB 设备,可通过复位恢复异常设备',
|
||||
refresh: '刷新',
|
||||
loadFailed: '加载 USB 设备列表失败',
|
||||
noDevices: '未发现 USB 设备',
|
||||
colDevice: '设备',
|
||||
colSpeed: '速度',
|
||||
colVideo: '视频',
|
||||
colAction: '操作',
|
||||
reset: '复位',
|
||||
resetConfirmTitle: '确认复位 USB 设备',
|
||||
resetConfirmDesc: '将通过 authorized 属性复位 USB 设备「{device}」,该设备上的所有连接将短暂中断。确定继续?',
|
||||
resetAction: '确认复位',
|
||||
},
|
||||
// WebRTC / ICE
|
||||
webrtcSettings: 'WebRTC 设置',
|
||||
webrtcSettingsDesc: '配置 STUN/TURN 服务器以实现 NAT 穿透',
|
||||
|
||||
Reference in New Issue
Block a user