Updated Video Stream (markdown)

bicarus
2026-08-20 02:56:40 -07:00
parent dff8cb5ee8
commit 070c0e491b
+2 -2
@@ -19,9 +19,9 @@ The server ends the connection if the game changes resolution. Treat a closed co
| | `stream.mjpg` | `stream.h264` |
| --- | --- | --- |
| Container | multipart/x-mixed-replace | none |
| Bandwidth | ~20x higher | low |
| Bandwidth | about 2x to 20x higher | low |
| Plays in a normal player | yes | yes |
| Works in a browser | yes, in an `<img>` tag | no |
| Works in a browser | yes, in an `<img>` tag | with some work |
| Client work | none | drives a decoder itself |
`stream.h264` is the default choice for an app. H.264 costs roughly twenty times less bandwidth than MJPEG and phones decode it in hardware, which matters a great deal for battery life. It is a bare elementary stream, so the app feeds the bytes to MediaCodec or VideoToolbox itself and nothing sits between the socket and the decoder.