Validate outgoing stream signal envelopes and join notes before dispatch
This commit is contained in:
1 parent
335466b4a1
commit
dfb60d7b7c
4 files changed
+56
-4
No files matched your search
@@ -349,6 +349,7 @@ So: "is streaming" ⇔ the `notifystreaminfo` item has `id`.
|
||||
### 4.13 `stream_join` — `{stream_id: string, client_id: number, message?: string}`
|
||||
|
||||
Sends `joinstreamrequest id=<stream_id> clid=<client_id> msg=<message|our nickname> is_remove=0`.
|
||||
An explicitly supplied join message is single-line and at most 200 UTF-16 code units, as in the historical client contract.
|
||||
Result `{}` (or `server_error`). The SDP offer arrives as `stream` event
|
||||
`notifyrespondjoinstreamrequest` (`decision=1`, `offer=<sdp>`).
|
||||
|
||||
@@ -359,6 +360,7 @@ Examples of `json`: `{"cmd":"answer","args":{"answer":"<sdp>"}}`,
|
||||
`{"cmd":"iceCandidate","args":{"mLine":0,"mid":"0","sdp":"candidate:..."}}`.
|
||||
Publisher ICE restart responses use `{"cmd":"reconnectOffer","args":{"offer":"<sdp>"}}`.
|
||||
Shared core validation accepts only `answer`, `iceCandidate`, and `reconnectOffer`, never arbitrary signaling commands.
|
||||
The outbound envelope and its arguments reject additional fields. SDP descriptions allow tab and line breaks and are limited to 60000 UTF-16 units. ICE uses a nonnegative safe integer `mLine` and single-line strings `mid` (64 units) and `sdp` (2048 units). Incoming alias handling is separate.
|
||||
Max serialized `json` size 60 KiB (the whole stdin line is capped at 256 KiB). Result `{}` or `server_error`.
|
||||
|
||||
### 4.15 `stream_leave` — `{stream_id: string, client_id: number}`
|
||||
|
||||
Reference in new issue
Block a user