服务端改用 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:
@@ -0,0 +1,5 @@
|
||||
aiortc>=1.9.0
|
||||
websockets>=13.0
|
||||
opencv-python>=4.10.0
|
||||
numpy>=2.0.0
|
||||
loguru>=0.7.0
|
||||
Reference in New Issue
Block a user