服务端改用 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:
2026-06-01 23:51:30 +08:00
parent b48a521b63
commit 02d7c48557
3 changed files with 96 additions and 30 deletions
+2 -1
View File
@@ -1,2 +1,3 @@
.venv/
.idea/
.idea/
__pycache__/