Revert "Use persistent WebTransport frame stream"
This reverts commit f6e2b7edda.
This commit is contained in:
@@ -48,8 +48,6 @@ Audio is the playback clock. The server sends JPEG frames over WebSocket by defa
|
||||
- First 8 bytes: little-endian float64 timestamp in seconds.
|
||||
- Remaining bytes: one complete JPEG image.
|
||||
|
||||
WebSocket sends one binary frame packet per message. WebTransport uses one persistent server-to-client unidirectional frame stream: the stream begins with the single byte `WT_STREAM_FRAME`, then repeats records of 4-byte little-endian uint32 packet length followed by one complete binary frame packet. Do not open one WebTransport stream per JPEG frame; that caused poor device performance at normal frame rates.
|
||||
|
||||
The frontend decodes JPEGs with browser image APIs, queues frames, and paints frames whose timestamps are due relative to `audio.currentTime`. This means the browser decodes only audio and still images, not video.
|
||||
|
||||
## Why JPEG Frames
|
||||
|
||||
Reference in New Issue
Block a user