mirror of
https://github.com/spice2x/spice2x.github.io.git
synced 2026-09-29 10:17:56 +03:00
Updated Video Stream (markdown)
+3
-1
@@ -79,7 +79,9 @@ The server ends the connection if the game changes resolution. Treat a closed co
|
||||
|
||||
`stream.mjpg` needs no container support at all and every frame stands alone, so it is the fallback when nothing else works. It is expensive on bandwidth and on client CPU.
|
||||
|
||||
In a secure browser context, WebCodecs can consume the H.264 access units directly. Where WebCodecs is unavailable, MediaSource can still play H.264 after the client wraps it in fragmented MP4. The MP4 track header needs the correct display dimensions before the first sample is appended; use the `width` and `height` reported for the selected screen rather than hardcoding or guessing them. The [substream](https://github.com/spice2x/substream) reference client implements both paths.
|
||||
WebCodecs can consume the H.264 access units directly; however, many modern browsers will prevent you from doing this in `http` unless the client is also localhost. Surprisingly, this works fine with iOS Safari.
|
||||
|
||||
Where WebCodecs is unavailable, MediaSource can still play H.264 after the client wraps it in fragmented MP4. The MP4 track header needs the correct display dimensions before the first sample is appended; use the `width` and `height` reported for the selected screen rather than hardcoding or guessing them. The [substream](https://github.com/spice2x/substream) reference client implements both paths.
|
||||
|
||||
## Quality
|
||||
|
||||
|
||||
Reference in New Issue
Block a user