WebSocket Video Viewer
WebSocket Mode
Direct JPEG streaming over WebSocket (no WebRTC)
Comparison Test: This viewer receives video frames directly over WebSocket
instead of WebRTC. Compare connection time and latency with the WebRTC version to determine
if the ICE handshake delay is worth the trade-off.
Note: Unlike WebRTC (peer-to-peer), WebSocket video goes through the signaling server.
If using ngrok, frames (~50KB each at 15fps = 6Mbps) may be throttled.
Try: python websocket-video-server.py --quality 20 for smaller frames.
Connection Timeline (WebSocket)
WebSocket connection opened
--
Registered with server
--
First video frame received
--
Bandwidth Usage
WebSocket streams uncompressed JPEG (higher bandwidth than WebRTC H.264)
Initializing WebSocket video viewer...