服务端改用 aiortc 实现 WebRTC 视频流接收
- handle_client.py: 替换原始 JPEG WebSocket 为 aiortc RTCPeerConnection - 实现 SDP offer/answer 协商和 ICE candidate 交换 - 通过 track.recv() 接收 RTP 视频帧并 cv2.imshow 显示 - 服务端口改为 8765 匹配 Android 端 - 新增 requirements.txt: aiortc, websockets, opencv-python 等 - .gitignore 添加 __pycache__
This commit is contained in:
+2
-1
@@ -1,2 +1,3 @@
|
||||
.venv/
|
||||
.idea/
|
||||
.idea/
|
||||
__pycache__/
|
||||
Reference in New Issue
Block a user