This commit is contained in:
2025-09-02 23:06:36 +08:00
parent 2a59bdcffc
commit 062ee6c70d
4 changed files with 47 additions and 22 deletions

View File

@ -52,7 +52,7 @@ async def create_device(request: Request, device_data: DeviceCreateRequest):
# 设备创建成功后在后台线程启动WEBRTC流处理
threading.Thread(
target=run_webrtc_processing,
args=(device_data.ip, full_webrtc_url),
args=(device_data.ip, existing_device["live_webrtc_url"]),
daemon=True # 设为守护线程,主程序退出时自动结束
).start()
# IP已存在时返回该设备信息