Status Draft. Protocol version 1 (sv1) of the Sloppy Voice v2 product
Date 2026-12-04
Depends on 00 (overview and conventions), 15 (calls, leases, data-channel layout, control channel, routing, SFU signalling, auto-rejoin), 16 (audio: voice-dc/1, Opus profiles, audio clock, receiver lease enforcement), 18 (SFrame and MediaAttestation); also refers to 08 (recovery words and device pairing), 10 (permissions), 20 (indicator copy) and 21 (relay and SFU internals)
Decisions used D-008, D-009, D-010, D-011, D-012, D-013, D-015, D-021, D-023, D-041, D-042, D-043, D-045, D-046, D-047, D-055, D-060, D-066, D-090, D-094
Owns The video-dc/1 media profile (fragment message, frame header, fragmentation, reassembly, decodability rules); the sfu-rtp/1 media profile (RTP codecs and codec selection, header extensions, simulcast and SVC use, layer limits from VideoPreference, and the use of 18's clear prefixes and SfuFrameMetadata); the video codec registry (codec names, and the video-dc/1 codec octets) and quality ladders; keyframe policy; the call.media_feedback kinds for video (§7); video adaptation and slow-viewer isolation rules; video receiver behaviour (held frames, lease enforcement for video); the presentation-timeline synchronisation and latency targets; the refinement of the videoRoute policy; the VideoPreference and VideoStats objects

1. Scope

This document specifies how screen video, screen and application sound, and webcam video are captured, encoded, framed, routed per viewer, adapted, reassembled, decoded, synchronised and displayed in a Sloppy Voice call, in every security mode. It carries over the old project's native screen share (screen-media/1, brief §5) as video-dc/1 and extends it to webcams (D-011, D-045), and it carries over the managed screen share through an SFU as sfu-rtp/1 (D-009, D-045).

In scope:

  • the three video-related sources: screen video (source 1), screen or application sound (source 2, carried with 16's audio pipeline) and webcam (source 3), and their life cycle (§4);
  • codecs, bitstream formats, quality ladders (resolutions, frame rates, bitrates), keyframe policy and liveness (§5);
  • the video-dc/1 profile: the whole encoded frame is protected (secure calls), then fragmented; the fragment message with its authenticated frame header; reassembly; decodability (§6);
  • receiver feedback: keyframe requests, reception reports, viewing preferences, and relay-originated viewer state (§7);
  • per-viewer delivery and slow-viewer isolation on the relay (§8);
  • sender adaptation of the quality ladder (§9);
  • receiving, held-frame behaviour and receiver lease enforcement for video (§10);
  • audio–video synchronisation and latency targets (§11);
  • the sfu-rtp/1 profile: RTP with encoded transforms, clear prefixes, simulcast and SVC layers, per-viewer layer selection (§12);
  • path selection for video between the relay and the SFU, including the refinement of 15's videoRoute policy (§13);
  • the VideoStats diagnostic counters (§14).

Out of scope (owner in parentheses):

  • the Call and Participant objects, join and leave, the sources flags of a participant, VoiceLease, lease snapshots and ticks, the RelayTicket, {relayUrl}/connect, the data-channel layout and labels, the control-channel envelope and relay.subscribe, routing, SFU signalling messages, call.route_changed, the epoch switch, auto-rejoin timers and Move voice here (15);
  • the voice-dc/1 frame format, the Opus profiles, the voice jitter buffer and the audio clock (16); this document uses them for source 2;
  • SFrame key derivation, the KID layout and joinNonce, the SFrame counter, replay window and old-key retention, MediaAttestation (18);
  • relay and SFU internals and the SFU adapter mappings for specific products (21);
  • permissions and moderation actions (10);
  • the exact copy of every user-visible string (20).

1.1 Conformance and status

This document is normative unless a section or paragraph says it is informative. Examples are informative unless the text says otherwise; where an example and the normative text disagree, the normative text wins (00 §1.3). The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in BCP 14 (RFC 2119, RFC 8174) when, and only when, they appear in all capitals, as shown here.

Binary grammars use ABNF (RFC 5234) in which each terminal value is one octet, as in 16: %x10 is the single octet 0x10 and 2OCTET is two octets. All multi-octet integers are unsigned and big-endian unless a codec bitstream says otherwise. JSON follows 00 §7: I-JSON, lowerCamelCase members, snake_case enum values, base64url without padding, durations in integer milliseconds ending in Ms. Rationale notes start with "Rationale:" and are informative. "UX:" notes describe what the user sees; document 20 owns the exact copy.

Conformance classes (00 §1.5, D-066) are affected as follows:

Class What it must implement from this document
Server (its relay) §6.8.2 relay validation, §8.2 per-recipient forwarding and slow-viewer isolation, §8.3 inbound caps, the relay-originated feedback of §7.5. A relay never decodes, decrypts, transcodes or re-times video.
SFU-capable server As Server, plus §12 (the sfu-rtp/1 profile) on the SFU side and the videoRoute policy of §13.2.
Full client (desktop, mobile) Everything for clients in §4 to §14, sending and receiving, on both profiles.
Web client As Full client. §5.2 and §12.6 note the browser APIs that meet the requirements.
Bot client Video is optional. A bot that sends video MUST meet §4, §5, §6 and §9 (or §12 on the SFU route). A bot that receives video MUST meet §6.8.1, §6.9, §6.10, §10.3 and §10.4 (and 18 in secure calls). User-interface requirements don't apply to bots.
Push gateway Nothing.

This document defines no HTTP endpoints, no event types and no error codes. It has no area in 00 §7.5. Everything it defines is either a binary message on the sv-video data channel that 15 sets up, a payload kind of 15's call.media_feedback control message (15 §6.5, §6.6), an RTP usage rule, or client-internal behaviour. Problems detected here are silent drops counted in VideoStats (§14). They are never shown as security warnings (00 §4.12.5).

2. Terminology

This document uses the terms of 00 §2 exactly, in particular Call, Participant, pid, VoiceLease, Lease tick, Bounded authority, Media profile, SFrame and MediaAttestation, and the terms of 15 §1.3 (Route, Coverage, Control channel, Planned migration) and 16 §2 (Source, Media process, Stream generation, Audio clock, Presentation timeline). It adds:

Term Definition
Video source Source 1 (screen video) or source 3 (webcam).
Sharer A participant that sends source 1, and possibly source 2, at the moment.
Viewer A participant that receives a given video source: on the relay, one that has it in its relay.subscribe list (15 §6.6); on the SFU route, one subscribed through 15's SFU signalling (15 §8.2).
Encoded frame One unit of encoder output for one picture: a VP8 or VP9 frame, an H.264 access unit or an AV1 temporal unit (§5.2).
Protected frame The bytes that are fragmented: the SFrame ciphertext of the encoded frame in a secure call, or the encoded frame itself in an insecure call (§6.5).
Fragment One video-dc/1 message carrying one chunk of a protected frame (§6.2).
Frame header The first 16 octets of every fragment. It is identical in every fragment of one frame and is the SFrame metadata in secure calls (§6.4).
Keyframe An encoded frame that a decoder can decode with no earlier frame (flag K, §6.3).
Reference chain The sequence of non-discardable frames since the last keyframe (§6.10).
Discardable frame A frame that no later frame references (flag D). Dropping it never breaks decoding.
Rung One step of a quality ladder: a maximum picture size, frame rate and bitrate budget (§5.5).
Content hint detail (text, slides, code: keep sharpness) or motion (games, video: keep smoothness) for a screen source (§5.6).
Pressure signal A one-second interval in which the sender saw evidence that its current rung is too heavy (§9.1).
Viewer state The relay's per-viewer forwarding state for one source: normal, thinned, keyframes_only or paused (§8.2).
Held frame The last decoded picture of a source, kept on screen while no newer picture is available (§10.2).
Clear prefix On the SFU route in secure calls, the first octets of an encoded frame that stay unencrypted, as 18 §8.5.2 fixes per codec (restated in §12.6).
VideoPreference A viewer's statement, per source, of whether it watches and at what size and frame rate (§7.3).

3. Overview (informative)

 SENDER (one participant, one media process)

 screen/window ─► capture (cursor, excl. own window) ─┐
                                                       ├─► rung control (§9) ─► encoder (§5) ─► [SFrame, secure] ─► fragmenter (§6.6) ─► pacer (§8.1)
 camera ─────────► capture (rotation) ────────────────┘        ▲                    one encode       one protect      frame header =            │
                                                               │                                                      SFrame metadata           │
           pressure signals: own uplink, relay feedback, majority of viewers, CPU                                                                │
                                                                                                                                                 │
 screen/app sound ─► 16's source-2 pipeline (voice-dc/1, sv-audio) ──────────────────────────────────────────────────────────────────────────────┤
                                                                                                                                                 └─► relay (one upload)

 RELAY (§8.2)  validate ─► lease check (15) ─► subscribers of (pid, source) ─► per-viewer queue, frame-aware dropping, viewer state ─► forward unchanged

 RECEIVER (§6.9–§11)
   fragments ─► validate ─► dedupe ─► reassemble ─► [SFrame decrypt; fail = frame lost] ─► decodability check (refSeq chain) ─► decoder
   ─► coverage check on the audio clock (§10.3) ─► presentation timeline (screen + sound) or webcam timeline (lip sync to voice) ─► display
   missing reference ─► keyframe_request; no new picture for 750 ms ─► "held" label

 SFU ROUTE (§12)  encoded transform (SFrame, clear prefix) ─► RTP, simulcast/SVC ─► SFU picks a layer per viewer ─► encoded transform ─► decoder

What changes from the old design, and why:

Old (brief §5) v2 Why
screen-media/1: signed, encrypted video fragments on their own data channel video-dc/1: the whole frame is SFrame-protected once and then fragmented; the frame header is authenticated as SFrame metadata; senders are authenticated by MediaAttestation (18), not per-frame signatures SFrame is the owner's choice for media (D-008); attestations replace per-frame signatures at much lower cost (D-043). Insecure calls use the same framing with no protection (D-021).
Screen share only on the native path Screen share and webcam (D-011) One profile for every video source.
No retransmission on the native path Up to 120 ms of per-hop retransmission on sv-video (15 §6.4) plus keyframe recovery Repairs most single losses inside the latency target with fewer keyframes.
Step down after three pressure signals; 30 s stable before stepping up; failed step-ups back off 60, 120, 240 s; encoder at about 80 % of budget Same rules, made exact (§9) Proven behaviour.
One slow viewer can't lower quality for healthy viewers Frame-aware per-viewer dropping at the relay with temporal thinning; viewer pressure counts only when a strict majority of viewers report it (§8, §9) Same guarantee, now testable.
Late picture keeps the last good frame, labelled "held" after 750 ms Same (§10.2) Proven behaviour.
Sound and video within 80 ms; under 500 ms capture to display (p95) Same targets for screen share, plus webcam targets (§11.4) Webcam is new in v2.
Managed share: standard WebRTC video through an SFU sfu-rtp/1 through any SFU (D-009), with SFrame through encoded transforms in secure calls Vendor neutrality and E2EE on every route.

4. Sources and their life cycle

4.1 Sources

sourceId Source Profile on the relay Profile on the SFU route Lease list (15 §4.1) At most per participant
1 Screen video: a whole screen, one window, or one browser tab video-dc/1 sfu-rtp/1 video 1
2 Screen or application sound voice-dc/1 (16) sfu-rtp/1 (§12.9) audio 1
3 Webcam video-dc/1 sfu-rtp/1 video 1

Source 0 (microphone) is entirely 16's. Sources 4–15 are reserved; senders MUST NOT send them and receivers and relays MUST drop them (15 §4.1).

A participant MAY send sources 1, 2 and 3 at the same time. Source 2 MAY be sent without source 1 ("share sound only", for example music); it then plays on the voice timeline (16 §11.4). When source 1 and source 2 are both sent, they belong to one share: they start and stop together unless the user turns sound off or on during the share, and they share one presentation timeline (§11.2).

Several participants MAY share screens at the same time. Nothing in the protocol limits the number of concurrent shares in a call; viewers choose what to watch (§7.3), and the bandwidth cost falls only on those who watch.

4.2 Starting a source

A client starts a video source in this order:

  1. Right. The client's own newest lease tick covers video (15 §4.6). If it doesn't, the client doesn't start capture and tells the user why, using the reason in its VoiceLease (videoBlockedBy, 15 §4.1): for example "You don't have permission to share here" (no_permission) or "You're timed out" (timed_out). This is informational, not a security warning. Source 2 needs audio coverage instead.
  2. Operating-system permission. The client asks for screen-capture or camera permission just in time, with one sentence explaining why (M3, 00 §4.12.4). The user picks a screen, window or tab in the platform's own picker; the client MUST NOT capture anything the user didn't pick.
  3. Announce. The client sends PATCH /v1/contexts/{ctx}/call/participants/{pid} with sources (15 §3.5): screen: true (and screenAudio: true if sound is shared) or webcam: true. A refusal (call.not_permitted) stops the start, and the client releases the capture.
  4. Keys (secure calls). The client holds the SFrame sending key for the epoch it must send in (18). Until then the UI says the share is starting, and nothing is sent.
  5. Send. The first frame of a source in a media process is a keyframe (§5.7). The sender sends it to every route that has viewers (§8).

Only by deliberate action. A client MUST NOT start source 1 or source 3 without a deliberate user action for that source in the current call. Joining a call, answering a ring (whatever its video hint, 15 §2.5.3), Move voice here and a switch to another call (15 §11) all start with the screen share and the camera off, unless the user chose a video option in that very action (for example "Video call" or "Answer with video", which sets video: true in the join, 15 §3.3.1). An automatic rejoin always brings the camera back off. A screen share that was active before the drop resumes only as §4.5 allows (D-090): it continues the user's earlier deliberate action and isn't a new start.

UX: a sharer MUST see, for the whole time a screen source is active, a persistent indicator that they are sharing and a one-tap "Stop sharing" control. A webcam sender MUST see a self-view or an equally visible camera-on indicator. While a source is active but its frames aren't reaching anyone (§4.5: reconnecting, migrating into a new call (16 §7.2 callState migrating), lease not covering video, waiting for keys, or capture interrupted by the operating system), these indicators MUST switch to a "not being seen" presentation that names the reason (for example "Reconnecting — your screen isn't being seen", 20 §11.10), MUST keep the Stop control, and MUST NOT use the active-sharing style; they return to the active style only when frames are being sent again. This is the video form of D-012's rule that the app never looks as if it is transmitting when it isn't. No warning is shown when sharing in an insecure context (D-055): secure accounts already see the open lock there (00 §4.12.6), and insecure accounts see nothing about security, by design (00 §1.1 rule 1).

4.3 Stopping a source

  1. When the user stops a source, or the platform ends the capture (window closed, tab navigated, camera unplugged), the sender encodes one last frame, which carries flag E (end of source, §6.3), sends it, stops sending the source within one frame interval, and sends the sources PATCH with the flag set to false.
  2. A receiver that receives a frame with E, or a call.participant_updated whose sources says the source stopped, removes that source's picture after showing the E frame (if it was decodable), without the "held" label (§10.2).
  3. Stopping source 1 also stops source 2 unless the user chose "share sound only".

4.4 Media processes, generations and timestamps

Video uses the media process of 16 §2 and §4.5 unchanged:

  • One media process has one joinNonce (18), one stream generation gen = joinNonce mod 4096, and one reference instant T0 on the sender's audio clock. All sources of a media process that travel on the relay, audio and video, share them; frames on the SFU route are protected by the SFU session's own encryptor instance with its own joinNonce (18 §4.4 item 3, §12.6 item 3). A sender never gives a new media process the gen of its most recent media process in the call, or a gen it used in the call within the last 60 s (16 §4.5.1).
  • A video frame's timestamp is the number of 90 kHz periods from T0 to the capture instant of the picture, modulo 2^32 (00 §7.7). Because audio uses the same T0 at 48 kHz, a receiver maps a participant's source-2 audio and source-1 video onto one timeline with no extra signalling (§11.2).
  • At 90 kHz a 32-bit timestamp wraps after 13 h 15 min 21.0 s. There is no call length limit (D-013), so receivers MUST compare timestamps with serial-number arithmetic (RFC 1982) and extend them to 64 bits as 16 §4.5.2 describes for sequence numbers.
  • The capture instant is the platform's capture timestamp for the picture (for example the presentation timestamp of a captured VideoFrame, a CMSampleBuffer or an Android Image), mapped onto the audio clock by the media engine. Where the platform gives none, the client uses the audio-clock time at which the picture was delivered to it.

A new media process starts at every join and every rejoin, planned or unplanned (including a relay migration), at the restart after the device's own MLS resync during a call (15 §12.4), and at every engine restart (16 §7.5 L5, 18 §4.3). It starts every active source again with frame number 0, refSeq 0 and a keyframe, and receivers move to the new gen as §6.9 describes.

4.5 Auto-rejoin, planned migrations and interruptions

15 owns the auto-rejoin state machine (15 §10) and 16 the audio half of D-012. For video:

Event (15) Video behaviour
Unexpected drop (reconnecting) Stop sending every video source at once. Webcam (source 3): stop the capture and turn the camera off; the camera indicator shows it is off, and the user turns it on again deliberately. Screen share (sources 1 and 2): keep the capture running and show the sharing indicator in its "not being seen" presentation (§4.2 UX) for at most 30 s after the client detected the drop (t0, 15 §10.4); viewers see the last picture as held. Nothing captured during the outage is ever sent (16 §7.5 L1–L6 apply to video too): no frame whose capture instant falls inside the outage is queued for later.
Rejoin completes, and its join response had seatRestored: true and arrived no later than t0 + 30 s on the client's monotonic clock (D-090) The new media process has started (§4.4). Resume the screen share that was active before the drop with a keyframe, then normal frames from live capture. The webcam stays off.
t0 + 30 s passes before a join response with seatRestored: true has arrived; a join response has seatRestored: false; or auto-rejoin ends (15 §10.4 ended) Stop the screen capture at that moment (no E frame: nothing can be sent), turn the sharing indicator off and show 20's SHARE.stopped.reconnect. The share doesn't resume after the rejoin, even if a later response has seatRestored: true; the user shares again deliberately, choosing what to share in the platform picker again (§4.2).
Planned rejoin while connected: relay migration (call.migrate or relay.closing drain, 15 §6.9) or the device's own MLS resync during a call (15 §12.4) Keep capture and sharing state, webcam included. At the first frame boundary after the rejoin response has been processed, switch to the new media process (16 §7.5 L5): each active source continues with a keyframe of the new gen. During a relay migration every frame of the new gen is sent to both relays (15 §6.9 item 3); receivers remove the duplicates (§6.11) and move to the new gen (§6.9).
security_upgraded or group_restarted migration into a new call (15 §12.1, §12.5) Keep capture and sharing state, webcam included, with the indicators in their "not being seen" presentation until frames flow again. Each active source resumes with a keyframe in the new call's media process once the client holds the sending keys (§4.2 item 4).
Route change (relay, SFU) Not a drop. Sharing continues; §13.3 covers keyframes at a switch.
Own lease stops covering video because it is excluded (no_permission, timed_out) Send nothing more within one frame interval; stop the capture; turn the indicator off; tell the user why (§4.2 item 1).
Own lease is stale (no fresh tick) Pause sending; keep capture; show the indicator as "not being seen"; resume with a keyframe when coverage returns.
Operating-system interruption (camera taken by another app, mobile app sent to background where the platform stops the camera) Pause the source and show its indicator as "not being seen". Where the client can still encode, it sends the neutral "Paused" card of §4.6 item 6 at the liveness rate of §5.8, so viewers see a deliberate pause rather than a network problem; where it can't (the app is suspended), it sends nothing and viewers see the held picture. It doesn't send E. It resumes with a keyframe when capture resumes.
Move voice here or a switch (15 §11) The old device stops every capture at once and turns its indicators off. The new device starts with no video source active (§4.2).

Sources flags after a rejoin. Before it resumes a source after any rejoin or migration, the client sends the sources PATCH of §4.2 item 3 again, unless its own Participant in the join or rejoin response already shows that source's flag as true; a refusal stops the source as in §4.2. A client whose Participant still shows webcam: true after an unexpected drop sends webcam: false. Likewise, a client that doesn't resume its screen share sends screen: false and screenAudio: false if its Participant still shows either as true.

Decision (D-090). After an unexpected drop, the webcam is turned off at once and comes back off; the user turns it on again deliberately. A screen share resumes by itself only when the seat was restored within 30 s: the rejoin's join response has seatRestored: true and arrived no later than 30 s after the client detected the drop (t0). Otherwise it stops, and the user shares again deliberately. During the outage the sharing indicator says the user isn't being seen (§4.2 UX, 20 §11.10). Planned migrations keep both. The 30 s are measured on the client from t0, not from the server's lostAt (15 §2.6), because the relay may notice a loss up to about 10 s after the client and the server would then hold the seat until about 40 s after the client noticed. Rationale: a camera, like an open mic, transmits continuously and has no physical control that shows intent after an outage, so D-012's rule for open mic applies to it directly; a screen share's indicator stays visibly on during a short outage (as "not being seen"), so resuming it matches what the user sees, while after a longer outage the user may have moved on to something private, and silently re-publishing their screen would contradict an indicator they may no longer be watching.

4.6 Screen-sharing privacy requirements

Screens show private things by accident. Clients that send source 1:

  1. MUST capture only what the user picked in the platform picker (§4.2).
  2. SHOULD exclude the client's own windows from a whole-screen capture where the platform allows it (for example ScreenCaptureKit content filters, SetWindowDisplayAffinity with WDA_EXCLUDEFROMCAPTURE on Windows), which also avoids an endless mirror effect.
  3. SHOULD offer window or tab capture first in their own share dialog, and whole-screen capture second.
  4. MUST include the mouse cursor in screen captures by default; MAY offer to hide it.
  5. MUST stop the capture, not just the sending, when the user presses "Stop sharing".
  6. SHOULD offer a "Pause sharing" control and MAY bind it to a global shortcut. The pause covers picture and sound together. While paused, the sender keeps both captures open but encodes no captured picture or sound; it sends repeat frames of a neutral picture (for example a "Paused" card rendered by the client) so viewers see a deliberate pause rather than a held frame, and it sends nothing for source 2 (viewers' shared sound fades out as at the end of a talkspurt, 16 §9.4). On resume it continues both from live capture, with a keyframe for the picture.
  7. MUST keep capture-protected screens out of the share. While the client itself displays recovery words (08 §4.4) or a pairing QR code or code (08 §6.3), and that display could fall inside the capture (whole screen, the client's own window, or its tab), the client MUST either exclude it from the capture through the platform (as in item 2) or, where it can't, stop encoding captured pictures and send the neutral picture of item 6 until that screen is gone.

4.7 Screen and application sound (source 2)

Source 2 is audio and uses 16 for everything audio-specific: the application-sound Opus profile (16 §5.2), capture that excludes the call's own playout (16 §6.3), silence gating, ducking (16 §10), concealment (16 §9.4) and the audio lease list. This document adds only:

  1. Route. Source 2 of a screen share follows the route of the same participant's source 1 (15 §7.1): voice-dc/1 frames on sv-audio while videoRoute is dc, and an Opus RTP track in the same media stream as source 1 while it is sfu (§12.9). Source 2 sent without source 1 ("share sound only") always travels as voice-dc/1 on the relay, whatever videoRoute is (16 §8.4 item 3).
  2. Subscription. On the relay, a viewer subscribes to source 2 together with source 1 (15 §6.6). A client MUST subscribe to a sharer's source 2 whenever it subscribes to that sharer's source 1, unless the user turned that sharer's sound down to 0 % (16 §9.7). A client MUST also keep (pid, 2) subscribed for every participant whose Participant sources has screenAudio: true and screen: false, with the same exception, so a sound-only share is heard without anyone opening anything (16 §8.4 item 4).
  3. Timeline. Source 2 with an active source 1 from the same media process plays on the presentation timeline of §11.2. Otherwise it plays on the voice timeline (16 §11.4).
  4. Moderation. Mute for everyone removes the sharer from audio, which silences source 2 and leaves source 1 running (D-015, 15 §4.9).

5. Codecs and encoding

5.1 Codec registry

The codec of every video-dc/1 frame is named by one octet in its frame header (§6.4). The same names are used in VideoPreference decode lists (§7.3) and VideoStats (§14).

codec octet Name Bitstream in video-dc/1 (§5.2) Example WebCodecs codec string Decode on video-dc/1 Encode on video-dc/1
0x00 — Reserved — — —
0x01 vp8 One VP8 frame (RFC 6386) vp8 MUST MUST
0x02 vp9 One VP9 frame or superframe, profile 0 (8-bit 4:2:0) vp09.00.51.08 SHOULD MAY
0x03 h264 One access unit, Annex B byte stream, Constrained Baseline profile avc1.42e033 SHOULD MAY
0x04 av1 One temporal unit, low-overhead bitstream format (AV1 §5), Main profile, 8-bit av01.0.13M.08 SHOULD MAY
0x05–0xFF — Reserved — Receivers drop the frame and count it in codecUnsupported (§14). MUST NOT

The example codec strings name level 5.1. Whatever string it uses, an encoder MUST be configured with a level that covers the picture size and frame rate it actually sends (§5.5), up to the 3,840 × 2,160 maximum of §5.2.

The octet values in this table are the codec field of the video-dc/1 frame header only. The SFU route has no frame header; there, the codec field of 18's SfuFrameMetadata uses 18's own values (18 §8.5.2: Opus 1, VP8 2, VP9 3), and the names of this table are used for VideoPreference decode lists and VideoStats on both routes.

"MUST decode" and "MUST encode" apply to Full and Web clients. A Bot client that sends video MUST be able to encode vp8; one that receives video MUST be able to decode vp8.

Proposed decision: VP8 is the mandatory video codec for encoding and decoding on both video profiles; VP9, H.264 and AV1 are optional and used only when every current viewer declares it can decode them (§5.3, and §12.4 on the SFU route, where secure calls allow only VP8 and VP9). Rationale: one universally available software codec guarantees interoperability, and the decode-list intersection lets hardware codecs be used without a negotiation round trip.

Rationale: VP8 is the one codec that every browser engine and every desktop and mobile platform can encode and decode in software, so it guarantees that any sender can reach any viewer. Hardware codecs (H.264 on most phones, VP9 and AV1 on newer devices) save battery and give better quality, so they are used whenever every current viewer can decode them (§5.3).

5.2 Bitstream requirements

Codec Requirements
vp8 A keyframe is a VP8 key frame (frame tag bit 0 = 0). No partitions are split across encoded frames. Temporal layers, if used, follow §5.4.
vp9 Profile 0. A keyframe is a VP9 key frame (frame_type = 0) that is not intra-only-with-references. Spatial layers MUST NOT be used on video-dc/1 (one picture size per stream); temporal layers follow §5.4. A superframe counts as one encoded frame.
h264 Constrained Baseline (profile_idc 66 with constraint_set1_flag 1), level up to 5.1. Annex B byte stream with 4-octet start codes. A keyframe is an IDR access unit that carries SPS and PPS NAL units before the IDR slice, so that every keyframe is self-contained. One access unit per encoded frame.
av1 Main profile, 8-bit. Low-overhead bitstream format (every OBU has obu_has_size_field = 1). A keyframe is a temporal unit whose frame is a KEY_FRAME with show_frame = 1, preceded by a sequence header OBU. Temporal delimiter OBUs MAY be omitted. Screen-content coding tools MAY be used.

For every codec:

  1. A picture-size change, a codec change and a change of codec configuration (such as the AV1 sequence header) happen only at a keyframe.
  2. Encoders MUST NOT use reference frames older than the last keyframe (no long-term references that survive a keyframe).
  3. The encoded picture is at most 3,840 × 2,160 and never larger than the rung allows (§5.5). Width and height are even numbers.
  4. Receivers configure their decoder from the codec octet and the keyframe's own headers. No out-of-band decoder configuration exists in video-dc/1.

Web clients meet these requirements with WebCodecs VideoEncoder and VideoDecoder (for H.264, avc: {format: "annexb"}), driven from a Worker. Native clients use the platform codecs or libvpx, libaom/SVT-AV1/dav1d and OpenH264.

5.3 Codec selection

Every viewer of a source tells the sender which codecs it can decode, in the decode member of its VideoPreference (§7.3). For each video source, the sender:

  1. computes the acceptable set: the codecs that appear in the decode list of every current viewer of the source, plus vp8 always;
  2. picks the first codec in its own preference order that is in the acceptable set and that it can currently encode in real time at the chosen rung;
  3. when a new viewer can't decode the current codec, switches to an acceptable codec at the next keyframe, which it sends within 1,000 ms of receiving that viewer's VideoPreference;
  4. switches to a codec that is better by its own preference order no sooner than 10 s after its previous codec change for that source.

RECOMMENDED preference orders: for screen detail, av1, vp9, vp8, h264, because AV1 and VP9 compress text and flat colours much better; for screen motion and webcam, a codec the device encodes in hardware first, then vp8.

A sender that has received no VideoPreference from anyone uses vp8. §12.4 applies the same selection on the SFU route.

5.4 Temporal scalability on video-dc/1

video-dc/1 supports exactly two structures, chosen by the sender per source and changeable at any keyframe:

Structure Frames Use
L1T1 Every frame is non-discardable (D = 0). RECOMMENDED for screen detail at 8 fps or less, where every frame matters.
L1T2 Frames alternate: even positions after a keyframe are non-discardable (temporal layer 0), odd positions are discardable (D = 1, temporal layer 1). A discardable frame references only the newest non-discardable frame, and nothing references a discardable frame. RECOMMENDED for webcam and for screen motion at 15 fps or more. Lets the relay halve the frame rate for a slow viewer without touching anyone else (§8.2).

Spatial layers and more than two temporal layers are not used on video-dc/1; the SFU route uses them (§12.5). WebCodecs encoders produce L1T2 with scalabilityMode: "L1T2"; the sender sets D from the chunk's svc.temporalLayerId.

5.5 Quality ladders

Each video source is sent at one rung of its ladder at a time. A rung gives a maximum picture box (long edge × short edge; the captured picture is scaled down, keeping its aspect ratio, until both edges fit, and never scaled up), a maximum frame rate, and a budget: the bitrate, in kbit/s, that the source may use on the wire, including fragment headers, SFrame overhead and keyframe bursts. The encoder's target bitrate is 80 % of the budget (brief §5); the rest absorbs keyframes and overhead.

Screen, content hint detail (keep sharpness; shed frame rate first):

Rung Picture box Max fps Budget (kbit/s) Encoder target (kbit/s)
5 2560 × 1600 15 5,000 4,000
4 2560 × 1600 8 3,500 2,800
3 1920 × 1200 8 2,200 1,760
2 1920 × 1200 5 1,500 1,200
1 1600 × 1000 5 900 720
0 1280 × 800 3 500 400

Screen, content hint motion (keep smoothness; shed resolution first):

Rung Picture box Max fps Budget (kbit/s) Encoder target (kbit/s)
5 1920 × 1080 60 8,000 6,400
4 1920 × 1080 30 5,000 4,000
3 1600 × 900 30 3,500 2,800
2 1280 × 720 30 2,200 1,760
1 1280 × 720 15 1,200 960
0 960 × 540 15 700 560

Rung 5 of motion is used only when the user turned on the share option "Smoother video (uses more data)", default off.

Webcam:

Rung Picture box Max fps Budget (kbit/s) Encoder target (kbit/s)
3 1280 × 720 30 1,800 1,440
2 960 × 540 30 1,000 800
1 640 × 360 30 500 400
0 320 × 180 15 150 120

Starting rungs: screen detail 3, screen motion 2, webcam 2 on desktop and 1 on mobile. The sender then follows §9.

Caps. The configuration actually used for a source starts from the controller's rung r (§9) and applies these caps in order:

  1. Shared budget. The budgets of all video sources a participant sends at once MUST add up to at most 0.9 × maxInboundKbps − 300 kbit/s (maxInboundKbps from relay.welcome, 15 §6.6; 9,000 − 300 = 8,700 kbit/s with the default). While a screen share is active, the webcam is used at rung 1 at most; if the sum still exceeds the limit, the screen source is used one or more rungs lower. If the sum still exceeds the limit with every source at rung 0, the webcam is paused (not encoded or sent; capture, self-view and indicator unchanged; resumed with a keyframe when the limit allows rung 0 again); if the screen source alone at rung 0 exceeds the limit, it is sent at rung 0 with its budget and encoder target lowered to fit. The rung that results is the effective rung.
  2. Viewer cap. The picture is scaled down further, if needed, so that it fits inside the largest viewer area among current viewers' VideoPreferences (its long edge at most the larger of maxWidth and maxHeight, its short edge at most the smaller), and the frame rate is capped at the largest maxFps. The budget is then scaled by the ratio of the capped to the uncapped pixel rate (pixels × frames per second), but not below rung 0's budget. When no viewer has stated a preference, there is no viewer cap. Sending more than anyone displays wastes everyone's bandwidth; capping to the largest request never lowers what any viewer sees.
  3. Capture. A picture is never scaled up. When the captured picture is smaller than the box, it is encoded at its own size, and the budget is scaled by the ratio of its pixel count to the box's (long edge × short edge), but not below rung 0's budget.
  4. Device. A sender whose encoder can't keep up (the encode time of a frame exceeds its frame interval for 3 of the last 10 frames) or whose platform reports thermal or battery pressure treats that as a pressure signal (§9.1).

Senders MAY use lower frame rates than the rung's maximum when the content changes less often, subject to §5.8.

5.6 Content hint for screen sources

The content hint picks the ladder for source 1. Clients MUST choose it automatically, so the user doesn't have to decide:

  1. At the start of a share the hint is motion when the captured window belongs to an application the platform identifies as a game or a full-screen video player, and detail otherwise, which is the default.
  2. During a share, the client switches from detail to motion when more than 50 % of the captured picture's pixels changed in at least 20 of the last 30 captured frames, and this has held continuously for 3 s.
  3. It switches from motion back to detail when fewer than 10 % of the pixels changed in at least 25 of the last 30 captured frames, and this has held continuously for 10 s.
  4. It makes at most one automatic change per 30 s.

A client SHOULD offer one optional share setting, "Optimise for: Text and images / Motion and video", that overrides the automatic choice for the current share. A change of hint takes effect at the next keyframe. The controller of §9 then continues on the new ladder at the equivalent rung: the rung with the largest budget not above the budget of the controller rung it had on the old ladder, or rung 0 if there is none. Web clients set MediaStreamTrack.contentHint to detail or motion accordingly.

Rationale: the hysteresis and the 30 s limit stop a share that hovers near the threshold (scrolling, a slide with a small embedded video) from flipping ladders, and keeping the equivalent rung means a change of hint never makes quality or bandwidth jump.

5.7 Keyframes

A sender sends a keyframe for a source:

  1. as the first frame of the source in each media process (§4.4);
  2. at least every 10 s (periodic keyframes; they let slow viewers in keyframes_only state, §8.2, see a fresh picture at least that often);
  3. in answer to a keyframe request it honours (§7.2), at the time §7.2 rule 2 sets: within one frame interval and at most 200 ms after receiving the request, or, when the request is coalesced, at the deferred time of §7.2 rule 2;
  4. at every picture-size, codec or structure change (§5.2, §5.4);
  5. after it has discarded or failed to send a non-discardable frame (§8.1), as its very next frame.

Every keyframe restarts the periodic 10 s timer.

Keyframe size. Senders SHOULD configure their encoder so a keyframe is at most the smaller of 8 times the average frame size at the target bitrate (for example libvpx rc_max_intra_bitrate_pct = 800) and the amount the pacer can send in 200 ms (§8.1 item 4), so that a keyframe on its own never looks like congestion (§9.1 P1). Every protected frame MUST stay within the 2 MiB limit of §6.7.

5.8 Liveness

While a video source is active and not paused by §4.5, the sender MUST send at least one frame every 500 ms, even if the captured picture hasn't changed. Where the capture delivers no new picture (some screen-capture APIs deliver frames only on change), the sender re-encodes the last captured picture; for unchanged content this produces a very small frame.

Rationale: viewers label a picture "held" after 750 ms without a new frame (§10.2). Without a liveness rule a perfectly still slide would look like a broken share.

5.9 Live video only

The live-only rules of 16 §7.5 apply to video with these values:

  • V-L1 A picture captured while the source couldn't be sent (no coverage, reconnecting, migrating into a new call (16 §7.2), waiting for keys) MUST NOT be sent later.
  • V-L2 A frame MUST NOT be handed to a transport if its picture was captured more than 1,000 ms earlier on the audio clock. If such a frame was non-discardable, the next frame sent is a keyframe.
  • V-L3 There is no catch-up: a sender never sends frames faster than its pacer allows (§8.1) to make up for a stall.

6. The video-dc/1 profile

video-dc/1 is the mandatory video media profile (D-045, 00 §7.8). Every server's relay and every Full and Web client MUST implement it.

6.1 Transport assumptions

video-dc/1 messages travel on the sv-video data channel (id 2) of a relay connection, as laid out by 15 §6.4. This document relies on these properties of that channel:

  1. It is an SCTP data channel over DTLS, separate from sv-control and sv-audio.
  2. It is unordered, with maxPacketLifeTime = 120 ms: SCTP retransmits a lost message for up to 120 ms per hop, then gives up.
  3. Each data-channel message carries exactly one video-dc/1 message.
  4. It carries binary messages only.

6.2 Message format

The first octet of every video-dc/1 message is vt: the high 4 bits are the profile version, which MUST be 1, and the low 4 bits are the message type. Version 1 defines one type:

vt Type Name Direction
0x10 0 Fragment Sender to relay, relay to viewer
0x11–0x1F 1–15 Reserved Receivers and relays MUST drop them silently.
any other — Other versions Receivers and relays MUST drop them silently.

Keyframe requests, reports and preferences don't travel on sv-video; they are call.media_feedback kinds on sv-control (§7).

  0                   1                   2                   3
  0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
 +-------+-------+---------------+-------------------------------+
 |ver = 1|type=0 |     flags     |              pid              |  -+
 +---------+-----+---------------+-------------------------------+   |
 |sourceId |         gen         |          frameNumber          |   |  frame header
 +---------+---------------------+-------------------------------+   |  (16 octets,
 |             refSeq            |   timestamp (high 16 bits)    |   |  identical in every
 +-------------------------------+---------------+---------------+   |  fragment of a frame;
 |    timestamp (low 16 bits)    |     codec     |   frameInfo   |  -+  SFrame metadata in
 +-------------------------------+---------------+---------------+      secure calls)
 |           fragIndex           |           fragCount           |     fragment fields
 +-------------------------------+-------------------------------+
 :                  chunk: 1 to 1,180 octets of the                :
 :                  protected frame (§6.5)                         :
 +---------------------------------------------------------------+
Octets Field Type Meaning Constraints
0 vt uint8 Version and type MUST be 0x10.
1 flags uint8 Frame flags (§6.3) Reserved bits sent as 0.
2–3 pid uint16 The sender's participant index (15) MUST equal the sender's own pid.
4–5 (high 4 bits) sourceId 4 bits 1 screen video or 3 webcam Only 1 and 3 are valid in video-dc/1.
4–5 (low 12 bits) gen 12 bits Stream generation (§4.4, 16 §4.5.1) Constant for the media process.
6–7 frameNumber uint16 Per-stream frame counter (§6.4) Wraps modulo 2^16.
8–9 refSeq uint16 Reference-chain counter (§6.4, §6.10) Wraps modulo 2^16.
10–13 timestamp uint32 Capture instant, 90 kHz, from the media process's T0 (§4.4) Wraps modulo 2^32.
14 codec uint8 §5.1 0x01–0x04 in v1.
15 frameInfo uint8 Bits 7–6: rotation; bits 5–0 reserved (send 0, ignore) rotation is 0 for source 1.
16–17 fragIndex uint16 Index of this fragment, from 0 fragIndex < fragCount.
18–19 fragCount uint16 Number of fragments of this frame 1 to 2,048.
20– chunk octets Part of the protected frame 1 to 1,180 octets.

Octets 0–15 are the frame header. Octets 16–19 are the fragment fields.

6.3 Flags

Bit (mask) Name Meaning
7 (0x80) C (ciphertext) 1: the protected frame is an SFrame ciphertext. 0: it is the plain encoded frame. MUST be 1 in a secure call and 0 in an insecure call (SM-11).
6 (0x40) K (keyframe) The encoded frame is a keyframe (§5.2). It starts a new reference chain.
5 (0x20) D (discardable) No later frame references this frame. MUST be 0 when K is 1.
4 (0x10) E (end of source) The last frame of this source before the sender stopped it (§4.3).
3–0 (0x0F) reserved Senders send 0. Receivers ignore them. Relays forward them unchanged.

Rationale: K and D are what a relay needs to drop frames per viewer without breaking decoding (§8.2), and they are cleartext so the relay can read them in secure calls. They are authenticated, so a relay that lies about them only harms the viewers it already serves, and a tampered frame fails decryption. C has the same role as in voice-dc/1 (16 §4.4): a modified client can't inject plain video into a secure call.

6.4 Frame-header semantics

  • frameNumber starts at 0 for the first frame of each stream (pid, sourceId, gen) and increases by 1, modulo 2^16, for every frame the sender creates for that stream. The same frame sent to two relays during a relay migration (§6.11) carries the same frameNumber. Receivers extend it to 64 bits with serial-number arithmetic (RFC 1982), as 16 §4.5.2 does for audio. At 60 fps a 16-bit counter wraps every 18 min 12.3 s.
  • refSeq counts non-discardable frames. The first keyframe of a stream has refSeq 0. Each later non-discardable frame (including keyframes) has the previous non-discardable frame's refSeq + 1, modulo 2^16. A discardable frame carries the refSeq of the newest non-discardable frame sent before it, which is the frame it references (§5.4). With refSeq, a receiver can tell from any complete frame whether it is missing a frame it needs, without waiting for every missing frame number (§6.10).
  • timestamp is the picture's capture instant (§4.4). Frames are sent in capture order; timestamps of successive frames of a stream don't decrease.
  • rotation is the clockwise rotation, in steps of 90°, that the receiver applies to the decoded picture before display (0: none, 1: 90°, 2: 180°, 3: 270°). Webcam senders use it instead of rotating pictures before encoding, like RTP coordination of video orientation (3GPP TS 26.114). Receivers ignore it for source 1.

6.5 Protection: encrypt, then fragment

Insecure call (C = 0). The protected frame is the encoded frame.

Secure call (C = 1). The protected frame is the SFrame ciphertext (RFC 9605 §4.2: SFrame header, encrypted data and authentication tag) of the whole encoded frame, produced as 18 specifies, with:

  • the plaintext: the encoded frame (§5.2);
  • the SFrame metadata: the 16-octet frame header of this frame, exactly as it appears in every fragment (octets 0–15);
  • the main encryptor instance of the media process (18 §4.4 item 2), so the KID's sourceId is the frame header's sourceId, its leaf is the sender device's leaf in the sending epoch, and its joinNonce low 12 bits equal gen;
  • one SFrame counter value per frame.

The frame is protected once, then fragmented (§6.6), and the identical fragments are sent on every relay connection that carries the source (§6.11). A receiver checks the KID of every reassembled frame exactly as 18 §4.5 specifies; this document doesn't restate those checks. MediaAttestation hashes the frame as 18 §9.2 specifies: the frame header together with the reassembled SFrame ciphertext, which is the complete protected frame (the concatenation of all chunks in fragIndex order).

Rationale: protecting whole frames means one SFrame counter, one authentication tag and one attestation hash per picture instead of per packet, and a frame can't be partly forged: a frame that is missing a fragment or carries an altered one fails decryption as a whole and is treated as lost. The fragment fields are deliberately outside the metadata, because they differ between fragments; tampering with them can only make reassembly or decryption fail.

6.6 Fragmentation

  1. The sender splits the protected frame into fragCount chunks of consecutive octets, in order, with fragCount = ceil(length / chunk size).
  2. The chunk size is the sender's choice, at most 1,180 octets. Senders SHOULD use 1,130 octets, so each message is at most 1,150 octets and fits one SCTP packet on common paths. Every chunk except the last SHOULD have the same size. The last chunk is at least 1 octet.
  3. Every fragment carries the frame's 16-octet frame header unchanged.
  4. Fragments of one frame are handed to the pacer in fragIndex order (§8.1).
  5. A protected frame longer than 2,097,152 octets (2 MiB), or one that would need more than 2,048 fragments, MUST NOT be sent. The sender discards it and sends a keyframe at a lower quality next (§5.7 item 5).

6.7 Size limits

Item Limit
Fragment message, total 21 to 1,200 octets
Chunk 1 to 1,180 octets
fragCount 1 to 2,048
Protected frame at most 2,097,152 octets
Encoded picture at most 3,840 × 2,160 (§5.2)

6.8 Validation

6.8.1 Receiver validation

A receiver MUST drop a fragment silently, and count it in invalidDrops (§14), if any of these holds:

  1. vt isn't 0x10, or the message is outside the §6.7 limits;
  2. sourceId isn't 1 or 3;
  3. pid is the receiver's own pid, or is neither in the call's roster (15 §2.5.2) nor in the listeners list of the newest accepted lease tick (16 §4.10.1 item 3);
  4. the C flag doesn't match the call's security mode;
  5. K and D are both set;
  6. fragCount is 0 or more than 2,048, or fragIndex ≥ fragCount;
  7. an assembly slot for the same (pid, sourceId, gen, frameNumber) exists and this fragment's frame header or fragCount differs from the slot's: the receiver then also abandons the slot (§6.9).

A fragment whose codec isn't 0x01–0x04, or is a codec the receiver can't decode, is dropped and counted in codecUnsupported; the receiver sends a VideoPreference (§7.3) if it hasn't sent one to that sender since the stream started.

After reassembly, in a secure call, the receiver checks the frame's KID as 18 §4.5 specifies (sourceId against the frame header, the joinNonce low 12 bits against gen, and the leaf against the receiver's own MLS state for the frame's epoch and the frame header's pid); a frame that fails is dropped as invalid and counted in invalidDrops. A frame that passes these checks but can't be decrypted is lost, not invalid (§10.4).

In a secure call, a reassembled frame whose pid isn't in the roster yet is held undecrypted until the roster entry arrives, as 16 §4.10.1 specifies for audio, but never more than 200 ms. If the entry doesn't arrive in time, the frame is lost, not invalid.

6.8.2 Relay validation

A relay MUST drop a message received on sv-video from a participant connection, and count it, if any of these holds:

  1. vt isn't 0x10, or the message violates §6.7;
  2. pid isn't the pid bound to the connection by its RelayTicket (15 §4.5 step 2);
  3. sourceId isn't 1 or 3;
  4. the C flag doesn't match the call's mode;
  5. K and D are both set, fragCount is 0 or more than 2,048, or fragIndex ≥ fragCount;
  6. the session's ticket prof lacks video-dc/1 (15 §6.4).

The relay never inspects or reassembles the chunks, and never decrypts, decodes, transcodes or re-times video. It forwards accepted fragments unchanged (§8.2).

6.9 Reassembly

A receiver keeps one stream state per (pid, sourceId, gen). gen values have no order and are compared only for equality; a sender never gives a new media process the gen of its most recent media process in the call, or a gen it used in the call within the last 60 s (16 §4.5.1). For each (pid, sourceId) the receiver has at most one current gen, at most one candidate gen, and a set of retired gen values, each kept for 60 s, as 16 §9.1 does for audio:

  1. A fragment of a retired gen is dropped and counted in fragmentsLate.
  2. A valid fragment whose gen is neither current, candidate nor retired creates the current stream if there is none. Otherwise it opens a candidate stream for that gen; an earlier candidate is discarded and its gen retired.
  3. The candidate becomes current, and the previous current gen is retired, when the candidate completes a frame that, in a secure call, decrypts and passes the KID checks of §6.8.1, and, in a secure call where the current stream has an attested frame (18 §9.7), when at least one of the candidate's frames has been attested (18 §9.8 item 6). Until then the current stream continues unchanged, so a stray or forged fragment can't end a live stream. The old stream's last picture stays on screen (held if needed, §10.2) until the new stream's first picture is displayed. While the candidate waits for attestation, the receiver keeps reassembling and decrypting its frames and hands them to 18 for recording and comparison, but doesn't display them. It keeps the candidate's newest complete keyframe and the frames after it, within the slot limits of this section. On promotion it decodes from that keyframe, or sends keyframe_request (reason loss) if it holds none.
  4. Same gen, new media process. In a secure call a stream is also identified by the full joinNonce of its KID (18 §4.5): a frame of the current gen that decrypts under a joinNonce other than the current stream's opens a candidate stream for that joinNonce (an earlier candidate is discarded). The candidate replaces the current stream under the conditions of item 3, including 18 §9.8 item 6, and the old stream is then discarded. In an insecure call, a fragment with flag K, frameNumber 0 and refSeq 0 whose frame header differs from the header of the current stream's first keyframe is exempt from item 5 of the slot rules below and is assembled in its own slot; if that frame completes, it starts a new current stream in place of the old one.
  5. A stream with no fragment for 60 s is discarded, and so are all streams of a participant that leaves the call roster (15).

Within a stream, the receiver keeps assembly slots keyed by extended frameNumber:

  1. The first fragment of a frame creates a slot and records the frame header, fragCount and the audio-clock arrival time.
  2. Each fragment is stored by fragIndex. A fragment whose index the slot already holds is a duplicate: it is dropped and counted in fragmentsDuplicate.
  3. A slot is complete when it holds every index from 0 to fragCount − 1. The protected frame is the concatenation of its chunks in index order. A complete frame is passed to decryption (secure calls) and then to the decodability check (§6.10).
  4. A slot is abandoned, and its frame counted in framesIncomplete, when any of these happens: 500 ms have passed since its first fragment arrived; a keyframe with a higher extended frameNumber has completed; the stream holds more than 32 slots or more than 8 MiB of fragments; the streams of the whole call together hold more than 64 MiB of fragments. When a size limit is exceeded, the oldest slot (of the stream, or of the call) is abandoned first. A slot whose stored chunks exceed 2,097,152 octets (§6.7) is abandoned at once as invalid and counted in invalidDrops instead.
  5. A fragment for a frame whose extended frameNumber is not greater than the newest frame already decoded in this stream is late; it is dropped and counted in fragmentsLate. A record of the last 256 completed or abandoned frame numbers MUST be kept, so that a duplicate fragment of a finished frame never creates a new slot.

The 500 ms limit is longer than one retransmission lifetime per hop (120 ms on each of two hops) plus jitter, so a frame that SCTP can still repair is never abandoned too early.

6.10 Decodability and decode order

Each stream keeps lastRef (the refSeq of the newest decoded non-discardable frame), lastFrame (the extended frameNumber of the newest decoded frame), and chainOk (whether the reference chain since the last keyframe is intact; initially false). For a complete, authenticated frame F:

Case Decodable when After decoding
F has K F.frameNumber > lastFrame, or the stream has decoded nothing yet lastRef = F.refSeq; chainOk = true; lastFrame = F.frameNumber
F has neither K nor D chainOk, F.refSeq = lastRef + 1 (mod 2^16), and F.frameNumber > lastFrame lastRef = F.refSeq; lastFrame = F.frameNumber
F has D chainOk, F.refSeq = lastRef, and F.frameNumber > lastFrame lastFrame = F.frameNumber

A frame that isn't decodable yet is handled as follows:

  1. Ahead of the chain (non-discardable with F.refSeq − lastRef ≥ 2, or discardable with F.refSeq − lastRef ≥ 1, computed modulo 2^16 and less than 2^15): the receiver holds F while a frame it needs may still complete. When the missing frames complete, it decodes them and then F in order. If a needed frame is abandoned (§6.9), or 250 ms pass after F completed without the chain catching up, the chain is broken: chainOk = false, every held frame that isn't a keyframe is discarded, and the receiver requests a keyframe (§7.2, reason loss).
  2. Behind (F.frameNumber ≤ lastFrame, or a refSeq older than the chain): dropped and counted in framesLate.
  3. Chain broken (chainOk false): every frame except a keyframe is discarded and counted in framesUndecodable, until a keyframe arrives. A receiver that discards a complete non-keyframe this way, and isn't already waiting for a requested keyframe, sends keyframe_request with reason loss, within the repeat limits of §7.2.

Frames are passed to the decoder in increasing frameNumber order. A missing discardable frame never delays a later frame: the refSeq rule shows at once that nothing needs it.

Rationale: because refSeq counts only non-discardable frames, a receiver that sees frame n + 1 with the expected refSeq knows that a missing frame n was discardable and needn't be waited for. Frames are never decoded out of order, because a decoder's reference buffers move forward with every non-discardable frame.

6.11 Duplicates and route changes

  • A fragment is identified by (pid, sourceId, gen, extended frameNumber, fragIndex). This is the video form of the per-stream duplicate rule that 15 §6.9 refers to.
  • The same fragment bytes are sent on every relay connection that carries the source, so it doesn't matter which connection a fragment came from: fragments of one frame may arrive partly from one relay and partly from another, and they assemble into one frame.
  • During a planned relay migration (15 §6.9), the sender switches to a new media process (§4.5) and sends every frame of the new gen to both relays. Fragments of the new gen arriving from both relays are duplicates removed by §6.9 slot rule 2; fragments of the old gen still in flight are handled by the generation rules of §6.9 and end when the new gen becomes current.
  • A route change never ends a source, never resets the stream state and is never shown to the user (00 §4.12.5).

6.12 ABNF

video-dc-message = fragment-msg

fragment-msg  = frame-header fragment-fields chunk

frame-header  = %x10 v-flags pid src-gen frame-number ref-seq v-timestamp codec frame-info
v-flags       = OCTET          ; C = 0x80, K = 0x40, D = 0x20, E = 0x10,
                               ; 0x0F reserved (send 0); K and D not both set
pid           = 2OCTET         ; uint16
src-gen       = 2OCTET         ; sourceId (high 4 bits: 1 or 3) | gen (low 12 bits)
frame-number  = 2OCTET         ; uint16
ref-seq       = 2OCTET         ; uint16
v-timestamp   = 4OCTET         ; uint32, 90 kHz
codec         = %x01-04        ; vp8, vp9, h264, av1
frame-info    = OCTET          ; rotation in bits 7-6, bits 5-0 reserved (send 0)

fragment-fields = frag-index frag-count
frag-index    = 2OCTET         ; uint16, less than frag-count
frag-count    = 2OCTET         ; uint16, 1 to 2048

chunk         = 1*1180OCTET    ; part of the protected frame;
                               ; whole fragment-msg at most 1,200 octets

6.13 Test vectors

The octet strings below were computed from the field values.

Vector 1: insecure screen keyframe in three fragments.

Field Value
joinNonce 0x8F3C12A5, so gen = 0x2A5 (the same media process as 16 vector 1)
flags K (0x40)
pid 7
sourceId 1
frameNumber, refSeq 0, 0
capture instant 1,000 ms after T0, so timestamp = 90,000 = 0x00015F90
codec vp8 (0x01)
frameInfo 0
Protected frame 2,500 octets (an insecure call, so the VP8 frame itself), chunk size 1,130

Frame header (16 octets):

10 40 00 07 12 a5 00 00 00 00 00 01 5f 90 01 00

Fragments (first 20 octets of each, then the chunk):

fragment 0: 10 40 00 07 12 a5 00 00 00 00 00 01 5f 90 01 00 00 00 00 03 + octets    0..1129 (1,150 octets in total)
fragment 1: 10 40 00 07 12 a5 00 00 00 00 00 01 5f 90 01 00 00 01 00 03 + octets 1130..2259 (1,150 octets in total)
fragment 2: 10 40 00 07 12 a5 00 00 00 00 00 01 5f 90 01 00 00 02 00 03 + octets 2260..2499 (260 octets in total)

A receiver that gets fragments 2, 0 and 1 in that order completes the frame on fragment 1 and decodes it (K).

Vector 2: frame header of a secure webcam frame, discardable, rotated 90°, near both wraps. These 16 octets are exactly the SFrame metadata 18 authenticates.

Field Value
flags C and D (0xA0)
pid 513 (0x0201)
sourceId, gen 3, 0xFFF
frameNumber 65,535
refSeq 4,660 (0x1234)
timestamp 2^32 − 3,000 = 4,294,964,296 = 0xFFFFF448
codec vp8
rotation 1 (90° clockwise), so frameInfo = 0x40
10 a0 02 01 3f ff ff ff 12 34 ff ff f4 48 01 40

If this frame fits in one fragment, its fragment fields are 00 00 00 01. The SFrame ciphertext that follows is in 18's test vectors.

Vector 3: end-of-source frame. The screen share of vector 1, sent in detail mode at 15 fps with L1T1, stops at frame 1,234. That frame is non-discardable, so refSeq = 1,234; its timestamp is 90,000 + 1,234 × 6,000 = 7,494,000 = 0x00725970; flags = E (0x10).

10 10 00 07 12 a5 04 d2 04 d2 00 72 59 70 01 00

Vector 4: decodability with L1T2. One stream; each row is a frame completing at the given time (ms). Frames with odd frameNumber are discardable.

Time frameNumber K/D refSeq State before (chainOk, lastRef, lastFrame) Result
0 0 K 0 false, —, — Decode; (true, 0, 0)
33 1 D 0 true, 0, 0 Decode; (true, 0, 1)
100 3 D 1 true, 0, 1 Ahead (needs refSeq 1); hold
101 4 — 2 true, 0, 1 Ahead by 2; hold
140 2 — 1 true, 0, 1 Decode 2; then 3 (D, refSeq 1 = lastRef); then 4 (refSeq 2 = 1 + 1); (true, 2, 4)
170 6 — 3 true, 2, 4 Decode (frame 5, discardable, is missing and not needed); (true, 3, 6)
240 8 — 4 true, 3, 6 Decode
300 11 D 5 true, 4, 8 Ahead (frame 10, refSeq 5, missing); hold
550 — — — — 250 ms after frame 11 completed, frame 10 still missing: chain broken; discard 11; send keyframe_request (loss)
700 14 K 7 false, 4, 8 Decode; (true, 7, 14)
701 13 D 6 true, 7, 14 Behind (frameNumber 13 ≤ 14): drop, framesLate

7. Feedback: keyframe requests, preferences and reports

7.1 Kinds

Video feedback travels as 15's call.media_feedback control message on sv-control (15 §6.5, §6.6): {"t": "call.media_feedback", "from": <pid>, "to": <pid>, "d": {"kind": …}}. 15 owns the message, its forwarding (the relay forwards a client's feedback only to to, and only when both from and to are in listeners) and its rate limits. This document owns the d payload for these kinds:

kind From → to Section Sent at most
keyframe_request Viewer → sender 7.2 1 per second per (viewer, source)
video_pref Viewer → sender 7.3 2 per second per (viewer, sender)
video_report Viewer → sender 7.4 1 per second per (viewer, source)
video_viewer_state Relay → sender (no from) 7.5 1 per second per (viewer, source)
video_audience Relay → sender (no from) 7.5 1 per second per source
video_upload_pressure Relay → sender (no from) 7.5 1 per second per source

Common rules:

  1. Feedback travels through the relay on sv-control, like the video-dc/1 media it concerns. On the SFU route, the SFU's own RTCP feedback replaces keyframe_request and video_report (§12.8); video_pref still travels on sv-control through the relay, and the viewer also maps it onto its SFU subscription (§12.3).
  2. sourceId in every kind is 1 or 3. A receiver ignores feedback with any other sourceId, feedback for a source it isn't sending, unknown members, and unknown kinds (15).
  3. A relay MUST NOT forward a client-sent message whose kind is one of the three relay-originated kinds; only the relay itself originates them. A sender MUST ignore video_viewer_state, video_audience and video_upload_pressure unless they arrive on its relay connection's sv-control channel with no from member (15 §6.5), so another participant can't fake them.
  4. Feedback is protected hop by hop (DTLS) only, in every mode. It carries no content and no keys. Senders treat it as hints within the bounds this document sets.

7.2 keyframe_request

Member Type Required Meaning
kind string Yes keyframe_request
sourceId integer Yes 1 or 3
reason string Yes subscribe (started viewing), loss (reference chain broken, §6.10), decoder_error, route_change (§13.3). Unknown values: treat as loss.

Viewer rules. A viewer sends a request when it starts viewing a source and has no decodable keyframe of the current stream, when its chain breaks, and when its decoder reports an error. While it waits for a keyframe it repeats the request every 1,000 ms, and never more often.

Sender rules.

  1. A request received at time t is satisfied by any keyframe of that source sent at or after t.
  2. Coalescing. The sender sends at most one request-driven keyframe per source per 1,000 ms. A request that arrives less than 1,000 ms after the source's last keyframe is satisfied by a keyframe sent 1,000 ms after that last keyframe, unless one is sent earlier for another reason.
  3. Slow viewers. A request from a viewer whose newest viewer state for that source (§7.5) is not normal is honoured at most once per 10 s per viewer. Requests from that viewer in between are ignored; the periodic keyframe (§5.7) still reaches it.
  4. A request from a pid that isn't in the listeners list of the sender's newest fresh tick is ignored.

Rationale: a viewer who just joined, or who lost a picture, should get one within about a second, but one viewer on a bad connection must not make everyone pay for a keyframe several times a second. With these rules, every other viewer pays at most for one extra keyframe per second from all healthy viewers together, plus one per 10 s per slow viewer.

7.3 video_pref (VideoPreference)

A VideoPreference states, per viewer and source, whether the viewer watches, how large and how smooth it needs the picture, and what it can decode.

Member Type Required Default Meaning and constraints
kind string Yes — video_pref
sourceId integer Yes — 1 or 3
subscribed boolean Yes — Whether the viewer watches this source now. It is informative: forwarding follows relay.subscribe (15 §6.6) on the relay and the viewer's subscription (§12.3) on the SFU route. The sender uses it to know its viewers (sender rules below).
maxWidth integer No No cap 16–3,840. The larger edge, in device pixels, of the area in which the viewer displays the picture.
maxHeight integer No No cap 16–3,840. The smaller edge of that area.
maxFps integer No No cap 1–60.
decode array of string Yes — Codec names from §5.1 the viewer can decode in real time, in no particular order. MUST include vp8. Unknown names are ignored. At most 8 entries.

Viewer rules:

  1. A viewer sends a VideoPreference to the sender when it starts or stops viewing a source; when the displayed area changes by more than 25 % in either edge and has then been stable for 500 ms; and when it first sees a new gen from that sender.
  2. The size is the area on the viewer's screen, rounded up, in device pixels (a 320 × 180 CSS-pixel tile on a 2× display is 640 × 360). A full-screen viewer states its screen size. A viewer that shows a source in a window the user can resize states the current window area.
  3. A viewer that can't decode more video (§10.5) lowers its maxWidth and maxHeight or stops viewing, rather than dropping frames silently.

Sender rules: a sender keeps the newest VideoPreference of each viewer per source, uses them for codec selection (§5.3), the viewer cap (§5.5) and the viewer count (§9.1), and forgets a viewer's preference when that viewer sends subscribed: false or leaves the call roster.

7.4 video_report

A viewer that is receiving a source sends a report about it to the sender every 1,000 ms (audio clock).

Member Type Required Meaning
kind string Yes video_report
sourceId integer Yes 1 or 3
gen integer Yes The stream generation reported on (0–4,095). Reports for an old gen are ignored.
intervalMs integer Yes Length of the interval covered (about 1,000).
framesComplete integer Yes Frames that completed reassembly in the interval.
framesIncomplete integer Yes Frames abandoned in the interval (§6.9).
framesLate integer Yes Frames dropped as behind under §6.10 item 2, plus frames none of whose fragments created a slot because they arrived late under §6.9 slot rule 5 (each such frame number counted once). Frames shown late (§11.2) aren't counted here.
framesUndecodable integer Yes Frames discarded because the chain was broken (§6.10).
waitingKeyframe boolean Yes The viewer's chain is broken now.
rxKbps integer Yes Fragment octets received for this source in the interval, in kbit/s.
congested boolean Yes §7.4.1

7.4.1 Congested

A viewer reports congested: true when, over the last 2 s, either:

  1. framesIncomplete + framesLate is more than 5 % of the frames the sender sent (from the extended frameNumber range observed); or
  2. the 95th percentile of the assembly time of non-keyframes (arrival of the last fragment minus arrival of the first) exceeds 50 ms plus one frame interval.

A viewer in waitingKeyframe because of a chain break also reports congested: true until its next decoded keyframe.

7.5 Relay-originated feedback

The relay knows things the sender can't see: who watches, and which viewers it is holding back. It tells the sender with these kinds, sent with no from and with to set to the sender's pid.

video_viewer_state: a viewer's forwarding state for one of the sender's sources changed (§8.2).

Member Type Required Meaning
kind string Yes video_viewer_state
sourceId integer Yes 1 or 3
viewer integer Yes The viewer's pid.
state string Yes normal, thinned, keyframes_only or paused. Unknown values: treat as paused.

The relay sends it when the state changes, coalescing changes so that at most one message per second per (viewer, source) goes out and the newest state always does. It also sends normal once when a viewer unsubscribes or leaves, so the sender doesn't keep counting it as slow.

video_audience: the number of relay viewers of a source changed.

Member Type Required Meaning
kind string Yes video_audience
sourceId integer Yes 1 or 3
viewers integer Yes Sessions currently subscribed to this source through relay.subscribe.

Sent when the count changes (coalesced to at most one per second per source, newest value), and once for each of a sender's active sources when the sender's session starts.

video_upload_pressure: the relay dropped some of the sender's video because it exceeded the inbound caps (§8.3) or maxInboundKbps (15 §6.6).

Member Type Required Meaning
kind string Yes video_upload_pressure
sourceId integer Yes 1 or 3
droppedOctets integer Yes Octets of this source dropped in the interval.
intervalMs integer Yes Length of the interval.

Pausing without an audience. While videoRoute is dc, a sender MAY stop encoding a source whose audience has been zero for 2 s: no relay viewers (video_audience). It keeps the capture and the sharing indicator, sends nothing (the liveness rule of §5.8 doesn't apply while paused this way), and resumes with a keyframe as soon as the audience becomes non-zero or a keyframe_request arrives. On the SFU route a sender has no audience count and doesn't apply this rule; unwatched encodings there are handled by the SFU and the sender's WebRTC stack (§12.5 item 3).

Rationale: a screen share nobody is watching is common in large channels (people talk and glance at it occasionally). Not encoding it saves the sharer's upload and battery, and costs a viewer only one keyframe's delay when they open it.

7.6 Examples

{ "t": "call.media_feedback", "from": 12, "to": 3,
  "d": { "kind": "video_pref", "sourceId": 1, "subscribed": true,
         "maxWidth": 2560, "maxHeight": 1440, "maxFps": 60, "decode": ["vp8", "vp9", "av1", "h264"] } }

{ "t": "call.media_feedback", "from": 12, "to": 3,
  "d": { "kind": "keyframe_request", "sourceId": 1, "reason": "subscribe" } }

{ "t": "call.media_feedback", "from": 12, "to": 3,
  "d": { "kind": "video_report", "sourceId": 1, "gen": 677, "intervalMs": 1003,
         "framesComplete": 8, "framesIncomplete": 0, "framesLate": 0, "framesUndecodable": 0,
         "waitingKeyframe": false, "rxKbps": 2140, "congested": false } }

{ "t": "call.media_feedback", "to": 3,
  "d": { "kind": "video_viewer_state", "sourceId": 1, "viewer": 9, "state": "thinned" } }

{ "t": "call.media_feedback", "to": 3,
  "d": { "kind": "video_audience", "sourceId": 1, "viewers": 14 } }

8. Delivery and slow-viewer isolation

A frame is encoded once, protected once (secure calls), fragmented once, and uploaded once to the relay, which forwards the identical fragments to every viewer (brief §5). One viewer's network must never lower what any other viewer receives. This section achieves that at the relay, the place that sees each viewer separately.

8.1 Sender: copies and pacing

  1. For each frame, the sender hands the fragments to the connection pacer of its relay connection (of each relay connection during a relay migration, §6.11) while any relay viewer exists or the audience is unknown (§7.5). The relay delivers the frame to each viewer (§8.2); the sender uploads it once.
  2. Video is sent on video-dc/1 only while videoRoute is dc (15 §7.6 item 5).
  3. A pacer sends the fragments of a frame in fragIndex order and doesn't interleave two frames of the same source. Frames of different sources are sent in capture order.
  4. Pacing rate. A pacer sends no faster than R = min(4 × Σ targets + 1,000 kbit/s, 0.9 × maxInboundKbps), where Σ targets is the sum of the encoder targets of the video sources it carries, averaged over any 50 ms window. The headroom above the targets lets a keyframe drain within about 200 ms (§5.7). A pacer hands fragments to the sv-video channel only while that channel's bufferedAmount is at most max(4,800 octets, R × 40 ms), and keeps the rest in its own queue. A message that waits in the SCTP send buffer longer than the channel's 120 ms lifetime is abandoned by SCTP without any signal (§6.1), so the bound keeps the backlog where the pacer can see and manage it.
  5. Backlog. A connection's backlog is (octets queued in the pacer + sv-video bufferedAmount) / R, in milliseconds.
  6. Relay connection backlog. When the relay connection's backlog exceeds 300 ms, the sender stops submitting captured pictures to the encoder until the backlog falls below 100 ms. Pictures that are skipped are never encoded, so the reference chain stays intact and no keyframe is needed. When the backlog exceeds 1,000 ms, the sender discards every fragment still in the pacer for that connection and sends a keyframe as its next frame (§5.7 item 5).
  7. A sender MUST NOT queue video behind audio: video and audio use separate channels (15 §6.4), and audio sending rules (16 §7.5 L3) are unaffected by video backlog.

8.2 Relay forwarding

For each fragment accepted from sender p for source s (§6.8.2), the relay:

  1. applies the lease rules of 15 §4.5: p is in the video list of a snapshot less than 3 s old, and the call's snapshots haven't stopped for 3 s;
  2. finds the eligible viewers: every session q with q ≠ p, q in listeners, and q subscribed to (p, s) through relay.subscribe (15 §6.6);
  3. for each eligible viewer independently, applies the forwarding decision of this section and appends the fragment to q's queue, or drops it for q only.

Per-viewer queues. Each viewer has its own video queue at the relay. The relay hands fragments from it to q's sv-video channel only while that channel's bufferedAmount is at most max(4,800 octets, rate_q × 40 ms), where rate_q is the relay's estimate of the rate at which q's channel drained over the last second, measured only over intervals in which q's queue wasn't empty (2 Mbit/s before any such measurement), and keeps the rest in the queue. The viewer's backlog age A is the age, on the relay's monotonic clock, of the oldest fragment in q's queue (0 when the queue is empty). No state of one viewer may delay or drop a fragment for another viewer.

Rationale: SCTP abandons a message that waits in its send buffer longer than the channel's 120 ms lifetime (§6.1) without telling anyone, so a large send buffer would turn congestion into silent, random fragment loss that the relay can't see. The bound on bufferedAmount keeps the backlog in the queue, where A measures it.

Forwarding decision. The relay keeps, per (p, s, q), a viewer state and a flag needKey. It decides once per frame, at the first fragment of that frame it receives (whatever its fragIndex), and applies the same decision to every later fragment of that frame for that viewer. Fragments are forwarded as they arrive (cut-through); the relay never waits for a whole frame.

Viewer state Frame Condition Decision Next state
any K A < 400 ms Forward; needKey = false normal stays normal; otherwise thinned
any K A ≥ 400 ms Drop (congestion); needKey = true paused
any not K needKey Drop unchanged
normal non-discardable A < 250 ms Forward normal
normal, thinned non-discardable A ≥ 250 ms Drop (congestion); needKey = true keyframes_only
normal discardable A < 100 ms Forward normal
normal discardable A ≥ 100 ms Drop (congestion) thinned
thinned non-discardable A < 250 ms Forward thinned
thinned discardable — Drop thinned
thinned — 5 s since entering thinned or since the last congestion drop, and A < 100 ms at every decision in that time — normal

Expiry. A fragment that has waited 500 ms in q's queue is discarded together with every other queued fragment of its frame for q. If that frame wasn't discardable, needKey = true and the state becomes keyframes_only (or stays paused). A frame that is dropped for q after some of its fragments were already sent to q is simply incomplete at q, which handles it as lost (§6.9).

New viewers. When q subscribes to (p, s), its state starts as normal with needKey = true: the relay forwards nothing but keyframes to it until the first keyframe, which the viewer requests (§7.2). This doesn't count as a state change.

Reporting. Every state change is reported to p with video_viewer_state (§7.5). The relay also counts, per viewer, frames forwarded and dropped by reason, for 21's metrics (21 §6.12).

Isolation property. The decisions for viewer q depend only on q's queue and the frame's flags. The sender's encoding changes only by the majority rule of §9.1. So a slow viewer gets a lower frame rate (thinned), then only keyframes (keyframes_only, a new picture at least every 10 s from periodic keyframes, more often from its own requests within §7.2's limits), and finally a held picture (paused), while every other viewer keeps full quality.

Proposed decision: Slow-viewer isolation on video-dc/1 is done by frame-aware per-viewer dropping at the relay using the cleartext K and D flags, with the thresholds of this section; the sender's own encoding reacts to viewers only when a strict majority of them are pressured (§9.1 P3). Rationale: it makes the old guarantee that one slow viewer can't degrade healthy viewers exact and testable without the relay decoding anything.

Rationale: dropping whole frames, and only frames nobody will need, is the only per-viewer adaptation a relay can do without decoding. L1T2's discardable frames give a first, gentle step (half the frame rate); dropping a non-discardable frame wastes everything until the next keyframe, so the relay stops sending useless frames until then. The thresholds keep a viewer's added delay below the 500 ms capture-to-display target.

8.3 Relay inbound caps

In addition to the session cap maxInboundKbps (15 §6.6), the relay enforces per participant connection and per video source, on its own monotonic clock:

What Rate Burst
Fragment octets, per (connection, sourceId 1 or 3) 1,100,000 octets per second (8,800 kbit/s) 2,200,000 octets
Fragment messages, per (connection, sourceId 1 or 3) 2,000 per second 2,000

Messages over a cap are dropped silently, counted, and reported to the sender with video_upload_pressure (§7.5). The caps fit the largest rung (8,000 kbit/s budget) and allow one maximum-size keyframe as a burst.

8.4 Test vector: relay viewer state

Sender p sends webcam (source 3) with L1T2 at 30 fps; frames with odd frameNumber are discardable. A is the viewer's backlog age at the frame's first fragment. Times in ms on the relay's clock.

Time frameNumber Kind A State before Decision State after
0 0 K 0 normal (needKey, new viewer) Forward normal
33 1 D 20 normal Forward normal
66 2 — 60 normal Forward normal
100 3 D 120 normal Drop (congestion) thinned; report
133 4 — 150 thinned Forward thinned
166 5 D 90 thinned Drop thinned
200 6 — 280 thinned Drop (congestion); needKey keyframes_only; report
233–1,300 7–39 — any keyframes_only Drop (needKey) keyframes_only
1,333 40 K (requested by the viewer) 30 keyframes_only Forward; needKey = false thinned; report
1,366–6,300 41–189 — always < 100 thinned Non-discardable forwarded, discardable dropped thinned
6,333 — — — thinned, 5 s since entering with A < 100 — normal; report

Other viewers of the same source are unaffected throughout.

9. Sender adaptation

On video-dc/1 the sender chooses the rung of each video source with the controller of this section, which makes exact the old native-path rules (brief §5): step down after three pressure signals, wait for 30 s of stable progress before stepping up, revert a failed step-up and wait longer before the next attempt (60, 120, then 240 s), and target about 80 % of the budget. On the SFU route, standard WebRTC congestion control replaces this controller (§12.5).

9.1 Pressure signals

The sender evaluates each source once per second on its monotonic clock. A one-second interval is a pressure signal for source s if, during it, any of these held:

# Signal Condition
P1 Own uplink The relay connection's backlog (§8.1) exceeded 250 ms while it carried s, or the sender skipped pictures because of the relay connection's backlog (§8.1 item 6).
P2 Relay drops A video_upload_pressure for s arrived.
P3 Majority of viewers Strictly more than half of s's current viewers are pressured. The viewers are the pids with a current subscribed: true VideoPreference for s (§7.3). A viewer is pressured when its newest video_report (less than 3 s old) says congested, or its newest viewer state (§7.5) isn't normal. With no known viewers, P3 never holds.
P4 Device The encoder couldn't keep up (§5.5 cap 4), or the platform reported thermal or battery pressure.

Rationale for P3: with one viewer, that viewer's trouble is the only thing that matters, so it counts. With two viewers, one healthy and one slow, it doesn't count, because lowering quality would hurt the healthy viewer while the relay already protects the slow one (§8.2). This is the old rule that one slow viewer can't force lower quality on healthy viewers.

9.2 Controller

Each video source has a controller with: the controller rung r, a phase (steady or trial), a step-up hold H (initially 30 s), and the time tr at which r last changed.

Phase Event Action Next phase
steady 3 pressure signals within the last 10 s If r > 0: r = r − 1. Clear the pressure history. tr = now. steady
steady H has passed since tr with no pressure signal and at least one frame sent every second, neither the shared-budget cap nor the viewer cap of §5.5 reduces the source below rung r, and r is below the ladder's top r = r + 1, tr = now. trial
steady As the previous row, but r is the ladder's top None steady
trial 3 pressure signals within the 10 s after the step-up r = r − 1 (revert). H = min(2 × H, 240 s), which from 30 s gives 60, 120, then 240 s. Clear the pressure history. tr = now. steady
trial 10 s after the step-up without a revert H = 30 s steady
any Content hint or ladder changes (§5.6) r = the equivalent rung on the new ladder (§5.6); H = 30 s; tr = now steady
any New media process (§4.5) r = min(r, starting rung); H = 30 s; tr = now steady

The configuration actually sent is r with the caps of §5.5 applied. When a cap is lifted (a viewer enlarges the picture, the webcam stops), the source goes up at once as far as r, since r was already proven; the controller itself only climbs while the shared-budget and viewer caps leave the source at r. A change that alters the picture size takes effect at a keyframe (§5.7); a change of only frame rate or bitrate takes effect at once.

Within a rung, a sender MAY lower its encoder target to 60 % of the budget for 3 s after a single pressure signal, as a gentler first reaction, and return to 80 % when 3 s pass without one.

9.3 Test vector: controller

Webcam on desktop (starting rung 2, top rung 3). Times in seconds; each listed time is a pressure signal unless the text says otherwise.

Time Event r Phase H
0 Start 2 steady 30
30 30 s with no pressure 3 trial 30
34, 35, 36 Pressure ×3 within the trial 2 at 36 (revert) steady 60
96 60 s with no pressure 3 trial 60
106 Trial passed 3 steady 30
200, 203, 207 Pressure ×3 within 10 s 2 at 207 steady 30
237 30 s with no pressure 3 trial 30
240, 242, 245 Pressure ×3 within the trial 2 at 245 steady 60
305 60 s with no pressure 3 trial 60
307, 308, 309 Pressure ×3 2 at 309 steady 120

One slow viewer. A screen share has three viewers. Viewer 9's reports say congested every second and the relay reports it thinned; viewers 4 and 12 are healthy. P3 needs more than 1.5 pressured viewers, so it never holds; the sender stays at its rung, and the relay thins only viewer 9 (§8.2). If viewer 4 also becomes pressured, P3 holds (2 of 3) and the sender steps down after 3 such seconds within 10 s.

10. Receiving and display

10.1 Viewing state machine

A receiver runs one instance per video source it can see in the roster.

State Event Action Next state
off The user opens the source, or the client auto-subscribes (small calls, visible webcam tiles; 15 §6.6 UX) Add the source to relay.subscribe while videoRoute is dc, or subscribe on the SFU while it is sfu; send video_pref with subscribed: true; send keyframe_request (subscribe) loading
loading A keyframe is decoded and the sender is covered (§10.3) Display it playing
loading 1,000 ms without a decoded keyframe Repeat keyframe_request (§7.2) loading
playing 750 ms of the audio clock pass without a new picture being displayed, and the source is still active Keep the last picture; show the "held" label held
held A new picture is displayed Remove the label playing
playing, held Chain broken (§6.10) or decoder error Keep the last picture; send keyframe_request unchanged (held after 750 ms)
any but off The newest fresh tick doesn't list the sender in video (§10.3) Remove the picture within 250 ms; show the participant's placeholder; drop the source's fragments before reassembly (§10.3 item 5) blocked
any but off MediaAttestation stops the source's stream (18 §9.8, §10.4) Remove the picture within 250 ms; show the participant's placeholder. Keep reassembling and decrypting the stream's frames so that 18 can record and compare them, but pass nothing to the decoder or the display; set chainOk = false (§6.10) blocked
blocked The sender is covered again, and 18 has returned every stream of the source to playing Send keyframe_request. After an attestation stop, display only frames whose SFrame counter is above 18's play floor (18 §9.8) loading
any but off A frame with E has been displayed, or call.participant_updated says the source stopped Remove the picture without the "held" label off
any The user closes the source, or the tile scrolls out of view for more than 2 s Remove it from relay.subscribe or the SFU subscription; send video_pref with subscribed: false off

UX: loading shows a neutral placeholder with a spinner. held keeps the last picture with a small, calm label that says the picture is delayed, for example "Picture delayed" (20 owns the copy). The label MUST NOT use the word "Paused", which belongs to the sharer's deliberate pause card (§4.6 item 6), and doesn't blame the viewer's connection, because the cause may be the sender's. blocked shows the participant's avatar, as when the camera is off. None of these is a warning, and none prompts the user (00 §4.12.5).

10.2 Held frames

  1. A receiver never shows a black or corrupted picture because frames are late or lost. Undecodable frames are never passed to the decoder (§6.10), and the last good picture stays on screen.
  2. The "held" label appears when no new picture has been displayed for 750 ms (brief §5) while the source is active. Because senders send at least one frame every 500 ms (§5.8), a healthy share of a still screen never shows the label.
  3. A held picture stays until a new picture arrives, the source stops (§4.3), or the sender stops being covered (§10.3).
  4. While the receiving client's own call is reconnecting or migrating (16 §7.2 callState; a relay migration or a route change keeps it connected and holds nothing), every picture it shows is held, with the label after 750 ms, and no new frame is displayed until the call is connected again.

10.3 Lease enforcement for video

Every receiver enforces bounded authority for video (00 HP-15, D-046) with the same ticks, clock and freshness rule that 16 §12 uses for audio:

  1. Ticks are accepted exactly as 16 §12.1 says (relay control channel, call.tick on the WebSocket, the join or rejoin response; highest seq wins, with 15 §4.4 item 3's WebSocket recovery from a wedged seq and a fresh start on joining a new call (16 §12.1 items 2 and 4); rxAt on the audio clock).
  2. At audio-clock time t, with K the newest accepted tick and V = 3,000 ms, whatever K.validMs says (15 §4.2, 16 §12.1 item 6), a sender p is covered for video if and only if t − K.rxAt < V and p is in K.video.
  3. At display (MUST). A receiver displays a new picture of source 1 or 3 only if its sender is covered for video at that moment.
  4. Removal (MUST). When the newest fresh tick doesn't list p in video, the receiver removes p's pictures within 250 ms and shows the placeholder (§10.1 blocked). When no tick is fresh at all (for example while the receiver itself is reconnecting), it displays no new picture but MAY keep showing the last one as held (§10.2 item 4).
  5. At arrival (SHOULD). Fragments of a sender that isn't covered when they arrive are dropped before reassembly and counted in leaseDrops.
  6. Own listening authority. If the newest fresh tick doesn't list the receiver's own pid in listeners, the receiver removes every picture of the call.
  7. Senders. A client MUST NOT send a video source unless its own pid is covered for video (15 §4.6).

These checks run in the media engine on the audio clock, not on the user-interface thread, so a stalled interface can't keep showing new frames from a revoked sender. With snapshots every second, a revoked sender's video stops within 4 s (15 §4.8): every video path goes through the relay or the SFU, which enforce the lease whatever the sender's client does (§8.2, §12.7 item 4).

10.4 Undecryptable, invalid and unattested frames

  • Undecryptable frames are lost. In a secure call, a complete frame whose SFrame decryption fails (authentication failure, a KID whose key the receiver doesn't hold once the hold below has expired, or a counter the replay window rejects, 18) is handled as if it had never completed: it is counted in decryptFailures, and §6.10 decides the consequence (nothing for a discardable frame; a broken chain and a keyframe request otherwise).
  • Unknown newer epoch. A complete frame whose KID names an epoch newer than any the receiver holds keys for is kept, undecrypted, for up to 200 ms on the audio clock (D-042, 18). If the keys arrive in time, it is decrypted and handled normally; otherwise it is lost.
  • Old epochs. Frames of the previous epoch are decrypted with retained keys for 10 s after the receiver learns that the call switched past that epoch (18 §6.6).
  • Only authenticated plaintext reaches the decoder in secure calls.
  • MediaAttestation failure. When 18 stops a stream of the source (18 §9.8: a mismatch or equivocation shown by a validly signed attestation, or frames unattested for more than 3 s; an invalid signature stops nothing), the receiver removes that source's picture within 250 ms (§10.1 blocked). It keeps reassembling and decrypting the stream's frames, because 18 needs to record them and compare them with later attestations before it can return the stream to playing, but it passes none of them to the decoder or the display and treats the reference chain as broken. When 18 returns the stream to playing, the receiver requests a keyframe and displays only frames whose SFrame counter is above 18's play floor, so nothing accepted while stopped is ever shown. It counts attestationStops. No warning is shown (D-043).
  • Decoder errors. A frame the decoder rejects breaks the chain (§6.10); the receiver resets the decoder at the next keyframe and requests one with reason decoder_error.

10.5 Decoders and capacity

  1. Receivers MUST use video decoders that are robust against malformed input, and SHOULD decode in a sandboxed process or use platform decoders that are sandboxed (browsers' WebCodecs decoders are). In an insecure public channel, anyone with speak_and_share can send a crafted bitstream.
  2. A Full or Web client on a desktop MUST be able to receive, decode and display at the same time one screen share at the top rung of either ladder and four webcams at rung 1. A mobile client MUST be able to do so for one screen share at rung 3 and two webcams at rung 1. A client asks for less with VideoPreference when it shows less (§7.3).
  3. When more sources are visible than the device can decode, the client lowers maxWidth and maxHeight for the least prominent tiles, then stops viewing tiles in order of least recent speaking activity, rather than dropping frames.
  4. A receiver applies rotation (§6.4) and scales the picture to its tile. It never upscales a picture beyond 2× its encoded size without smoothing.

11. Synchronisation and latency

11.1 Clocks

Every receiver-side video timing decision in this document (reassembly limits, the decodability wait, display scheduling, the "held" label, coverage) uses the audio clock of 16 §11.1, so a sleeping or stalled device can't show stale video under an expired lease. Display refresh instants (vsync) are mapped onto the audio clock by the media engine. Sender-side capture instants are mapped onto the sender's audio clock (§4.4). Sender pacing and the controller of §9 use the sender's ordinary monotonic clock.

Two timelines carry video, as in the old design (brief §5, 16 §11.4):

  • the presentation timeline of each sharer: screen video (source 1) and its sound (source 2), synchronised with each other (§11.2);
  • the webcam timeline of each participant: webcam video (source 3), aligned to that participant's voice where possible (§11.3).

Neither delays the voice timeline (16 §11.4): no microphone audio is ever held back to match any video.

11.2 Presentation timeline

For a sharer p and one media process (one gen), the receiver keeps one playout offset O that maps the sharer's media time onto the receiver's audio clock. Both sources count from the same T0 (§4.4), so for any frame:

  • s = its extended timestamp divided by 90 (video) or 48 (audio): its capture time in ms since T0;
  • c = the audio-clock time at which it became available: when the last fragment of a video frame arrived, or when an audio frame arrived;
  • D = c − s (an unknown constant clock offset cancels out below).

Then:

  1. B = the minimum D over both sources' frames in the last 10 s (the first frame's D at the start).
  2. Video need Nv = the 95th percentile of D − B over the non-keyframes of the last 5 s, plus the 95th percentile of the decoder's latency over the last 5 s, plus 10 ms for rendering.
  3. Audio need Na = the 95th percentile of D − B over the source-2 frames of the last 3 s, plus 20 ms (16 §9.3's margin for FEC). Na = 0 when source 2 isn't active.
  4. Target T = clamp(max(Nv, Na), 60 ms, 450 ms). If more than 3 % of the video frames due in the last 2 s were shown late (item 7), T is raised by 40 ms, up to 450 ms.
  5. The ideal offset is O* = B + T. When O* rises above O, the receiver reaches it within 500 ms (audio by time-stretching under 16's rules, video simply by showing frames later). When O* has stayed at least 20 ms below O for 5 s, the receiver lowers O at no more than 5 % speed-up (50 ms per second).
  6. A source-2 frame is played at s + O, with 16's concealment rules (16 §9.4). No source-2 frame is held more than 500 ms (16 §11.4).
  7. A video frame is due at s + O. At each display refresh at audio-clock time r, the renderer shows the newest decoded frame that is due (s + O ≤ r). A frame decoded more than 80 ms after it was due is shown late: it is still shown if it is the newest decoded frame, and it is counted in framesShownLate.
  8. A new gen, or a gap of more than 10 s in both sources, restarts the timeline from the next frame.

Because audio and video use the same O, a sound and the picture captured at the same instant are presented together, apart from display refresh granularity and frames shown late. This meets the 80 ms sync target (§11.4) whenever frames are on time.

Rationale: making the presentation timeline wait for whichever of picture and sound needs more delay keeps them together, as the old design did; keeping it separate from the voice timeline means a screen share never makes conversation laggy.

11.3 Webcam timeline and lip sync

For participant p's webcam (source 3) in one media process:

  1. The receiver computes a webcam offset Ow = Bw + Tw, where Bw is the minimum D over the webcam's frames in the last 10 s, and Tw is the 95th percentile of D − Bw over the non-keyframes of the last 5 s, plus the 95th percentile of the decoder's latency, plus 10 ms, clamped to between 30 ms and 300 ms.
  2. If p's microphone stream of the same gen is active on the voice timeline with playout offset Ov (16 §9.2), a webcam frame is due at s + min(max(Ow, Ov), Ow + 200 ms). Otherwise it is due at s + Ow.
  3. Display follows §11.2 item 7.

So video waits up to 200 ms for the voice when the voice buffer is the deeper one, and never makes the voice wait. On the SFU route the webcam and the microphone travel on different transports with different timestamp bases; there, webcam frames are displayed as the platform's WebRTC stack schedules them and lip sync is best effort (§12.9).

11.4 Targets

Clean test setup: sender and viewer each on a wired network, both less than 40 ms round-trip time from the relay (or SFU), less than 0.1 % packet loss and no competing traffic; desktop clients on hardware no older than a 4-core 2019 x86-64 or ARM laptop; a call of 4 participants; video at the ladder's starting rung; measurement for at least 5 minutes, excluding the first 30 s.

Full and Web clients, relays and SFUs MUST meet these targets in the clean test setup, and SHOULD stay as close to them as conditions allow elsewhere:

Metric Target Applies to
Screen share, capture to display 95th percentile < 500 ms Both profiles
Screen sound versus screen video 95th percentile within ±80 ms Both profiles
Webcam, capture to display 95th percentile < 400 ms Both profiles
Webcam versus the same person's voice 95th percentile: the picture at most 90 ms behind the voice (sound leading) and at most 185 ms ahead of it (sound lagging) video-dc/1
First picture after starting to view 95th percentile < 1,000 ms Both profiles
Recovery after losing a non-discardable frame 95th percentile < 1,000 ms to the next displayed picture Both profiles
"Held" label after the last new picture 750 ms (±50 ms) Both profiles
Picture removed after the sender stops being covered ≤ 250 ms after the tick that omits the sender Both profiles

Capture-to-display is measured with a test source that renders a running millisecond clock and flashes, with a sound pulse, every 2 s, captured on the sender and filmed or screen-recorded on the viewer side together with a reference clock. The webcam-versus-voice limits are the acceptability thresholds of ITU-R BT.1359 (sound ahead of vision by at most 90 ms, sound behind vision by at most 185 ms); its detectability thresholds (45 ms and 125 ms) are a goal, not a requirement. The asymmetry matters: §11.3 never makes the voice wait, so the picture tends to lag, which is the direction viewers notice first.

12. The sfu-rtp/1 profile

12.1 When it is used

sfu-rtp/1 carries sources 1, 2 and 3 while the call's videoRoute is sfu (15 §7.6). The microphone (source 0) never uses it (16 §8.4). It is optional for servers (the feature sfu-rtp/1, 00 §7.8, advertised only by SFU-capable servers), mandatory for Full and Web clients, and optional for Bot clients.

On this route, the SFU's standard WebRTC machinery replaces video-dc/1's fragmenting, pacing, keyframe requests, controller and relay thinning: RTP packetization, retransmission, congestion control and per-viewer layer selection (brief §5). Everything else in this document still applies: sources and life cycle (§4), codecs where §12.4 allows them, ladders as maximums (§12.5), VideoPreference (§7.3), receiver lease enforcement and held frames (§10), and the targets of §11.4.

12.2 Transport

  1. Each participation that uses the SFU has one RTCPeerConnection to the SFU, set up through 15's SFU signalling (15 §8). It is separate from the relay connection, which stays up (15 §7.1).
  2. The connection uses BUNDLE (RFC 9143) on one transport, rtcp-mux (RFC 5761) and rtcp-rsize (RFC 5506), ICE (RFC 8445) with ICE consent (RFC 7675), and DTLS-SRTP (RFC 5764). The SFU SHOULD be ICE-lite with public UDP candidates and SHOULD offer passive ICE-TCP (RFC 6544). Clients configure no STUN or TURN servers (D-094).
  3. SRTP protection profiles: SRTP_AEAD_AES_128_GCM SHOULD be offered first; SRTP_AES128_CM_HMAC_SHA1_80 MUST be supported. RTP header extension encryption (RFC 9335) MAY be used. This protection is hop by hop.
  4. SDP follows JSEP (RFC 9429) with one transceiver per published source (sendonly) and one per received source (recvonly).

12.3 Tracks, identification and subscriptions

15's SFU signalling (15 §8.2) provides what this profile needs:

  1. for every transceiver a client publishes, a publish entry that maps its mid to the sourceId it carries (and gives its RID list for simulcast), so the SFU adapter knows (pid, sourceId) for every published track;
  2. for every track a client receives, a Track with its (pid, sourceId);
  3. subscriptions per (pid, sourceId), each with optional maxSpatialLayer and maxTemporalLayer.

A publisher MUST put source 1 and source 2 of one share in one media stream (one msid stream ID), so that the receiving platform's own audio–video synchronisation applies to them, and MUST give a webcam its own stream.

From VideoPreference to layer limits. 15's subscriptions carry layer limits, not a VideoPreference, so a viewer derives them from its own VideoPreference for the source (§7.3) and sends them in its subscription request (15 §8.2), again whenever that preference changes:

  1. Layers are numbered from 0, lowest first. Spatial layers are the simulcast encodings in increasing size (q, h, f for a webcam; h, f for a motion screen; f alone for detail), or the VP9 spatial layers (§12.5). With L1T3, temporal layers 0, 1 and 2 carry a quarter, a half and all of the frame rate.
  2. maxSpatialLayer is the lowest spatial layer whose picture covers maxWidth × maxHeight (long edge against maxWidth, short edge against maxHeight). A layer's picture is estimated as the top layer's picture divided by that layer's scale-down factor (4, 2 or 1). The top layer's picture is the newest decoded picture multiplied by the scale-down factor of the layer it came from or, before any picture is decoded, the picture box of the top rung of the source's ladder (§5.5). If no layer covers the area, or the preference has no size limit, the member is omitted.
  3. maxTemporalLayer is the lowest temporal layer whose frame rate is at least maxFps, computed from the full frame rate observed on the source or, before any is observed, the top rung's maximum frame rate. If the preference has no maxFps, the member is omitted.

In a secure call, a receiver checks the KID of every frame against the Track it arrived on, as 18 §4.5 specifies (sourceId against the Track's sourceId, and the leaf against its own MLS state for the Track's pid; there is no gen on this route); a frame that fails is dropped as invalid. This stops an SFU from presenting one participant's media as another's or as a different source.

12.4 Codecs, payload formats and feedback

Codec RTP payload format Insecure calls Secure calls
VP8 RFC 7741 MUST send and receive MUST send and receive
VP9 (profile 0) RFC 9628 MAY MAY
H.264 Constrained Baseline, packetization-mode=1 RFC 6184 SHOULD MUST NOT in v1
AV1 (Main) AV1 RTP specification MAY MUST NOT in v1
Opus (source 2) RFC 7587 with stereo=1, sprop-stereo=1, useinbandfec=1; cbr=1 in secure calls MUST MUST

Proposed decision: In secure calls on the SFU route, only VP8 (mandatory) and VP9 (optional) are used for video, with the clear prefixes of §12.6; H.264 and AV1 are used on the SFU route only in insecure calls in v1. Rationale: see below and §15 item 1.

Rationale for the secure-call restrictions: in browsers, RTP packetizers for H.264 and AV1 parse the encoded bitstream (NAL units, OBUs) after the encoded transform has run, so they can't packetize SFrame ciphertext reliably. VP8's and VP9's packetizers take their descriptors from encoder metadata and work with encrypted payloads. The list matches 18 §8.5.2, which is normative for secure calls (§15 item 1).

Codec selection. A sender publishes each video source on the SFU route in one codec, chosen as §5.3 describes, with two changes: the acceptable set is formed from the VideoPreferences of all the source's viewers, whatever route they use, plus vp8; and in a secure call it is limited further to the codecs 18 §8.5.2 allows (vp8 and vp9). The SFU doesn't transcode (§12.7 item 4), so a viewer whose decode list lacks the published codec gets no picture until the sender switches: the sender renegotiates its SFU session (15 §8.2) to publish an acceptable codec, starting with a keyframe, within 1,000 ms of receiving that viewer's VideoPreference. A viewer sends its VideoPreference (§7.3) no later than its SFU subscription.

Codec numbers. In a secure call the codec field of 18's SfuFrameMetadata takes 18 §8.5.2's values (Opus 1, VP8 2, VP9 3). The video-dc/1 octets of §5.1 are never used on this route.

RTCP feedback: nack (RFC 4585), nack pli, ccm fir (RFC 5104) and transport-cc MUST be supported for video; goog-remb MAY. Retransmission with RTX (RFC 4588) MUST be supported for video. RED, ULPFEC and FlexFEC MAY be used.

RTP header extensions:

Extension Use Requirement
urn:ietf:params:rtp-hdrext:sdes:mid (RFC 9143) BUNDLE demultiplexing MUST
urn:ietf:params:rtp-hdrext:sdes:rtp-stream-id and …:repaired-rtp-stream-id (RFC 8852) Simulcast MUST with simulcast
http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions-01 Congestion control MUST
https://aomediacodec.github.io/av1-rtp-spec/#dependency-descriptor-rtp-header-extension Layer forwarding MUST with VP9, in every scalability mode of §12.5; MAY with VP8; MAY with H.264 and AV1 (used only in insecure calls)
urn:3gpp:video-orientation Webcam rotation SHOULD for source 3
http://www.webrtc.org/experiments/rtp-hdrext/abs-capture-time Capture time MAY
http://www.webrtc.org/experiments/rtp-hdrext/playout-delay Low-delay hint for screen share MAY
urn:ietf:params:rtp-hdrext:ssrc-audio-level (RFC 6464) Audio level MUST NOT on source 2 in secure calls; MAY in insecure calls

Rationale for the audio-level rule: an audio-level extension would reveal the loudness of shared sound frame by frame, which secure calls hide (16 §5.5); source 2 needs no active-speaker detection.

Rationale for the Dependency Descriptor rule: the Dependency Descriptor is an unauthenticated forwarding hint in every mode (18 §8.5.3), so carrying it changes nothing in SfuFrameMetadata. VP9 sources carry it so that any SFU can switch SVC layers without parsing the VP9 payload descriptor. VP8 simulcast switches by encoding and reads the temporal layer index from the VP8 payload descriptor.

12.5 Simulcast, SVC and limits

Senders publish each video source with these structures (W3C WebRTC-SVC scalabilityMode names):

Source With VP8 or H.264 (simulcast, RFC 8853) With VP9 (SVC)
Webcam 3 encodings: rid q (scaleResolutionDownBy 4), h (2), f (1); each L1T3 L3T3_KEY
Screen, motion 2 encodings: h (2), f (1); each L1T3 L2T3_KEY
Screen, detail 1 encoding: f; L1T3 (or L1T2) L1T3
  1. The f encoding (or the top spatial layer) uses the picture box, frame rate and budget of the highest rung of §5.5 allowed by the shared-budget and device caps; it is never larger. h gets at most 35 % and q at most 12 % of that budget.
  2. The sender's WebRTC congestion control (transport-wide feedback) lowers bitrates and turns off the highest encodings when the uplink can't carry them. The controller of §9 doesn't run on this route.
  3. No message in v1 lets the SFU ask a sender to pause or resume an encoding. An SFU MAY stop forwarding an encoding that no viewer receives; its congestion feedback then lets the sender's WebRTC stack lower or suspend that encoding, and senders need do nothing else.
  4. Keyframes: senders answer PLI and FIR per encoding (only the requested encoding sends a keyframe). The SFU SHOULD forward or generate at most one keyframe request per encoding per 1,000 ms.

12.6 End-to-end encryption on the SFU route

In a secure call every frame of sources 1, 2 and 3 on this route is SFrame-protected end to end (00 HP-5, D-041), through the WebRTC encoded-transform API (RTCRtpScriptTransform in a Worker, or the platform's equivalent in native clients):

  1. Sender and receiver. The transforms apply SFrame exactly as 18 §8.5.4 specifies. The SFrame metadata is 18's SfuFrameMetadata (18 §8.5.3), built from the codec (18 §8.5.2's values) and the clear prefix of the table below; it never contains layer IDs. The frame data becomes clear prefix ‖ SFrame ciphertext. A frame that fails the KID checks or decryption is dropped (invalid or lost, 18); the WebRTC stack then recovers with its own keyframe request. A frame from a sender that isn't covered (§10.3) is also dropped in the receiving transform.
  2. The SFU encryptor instance. Frames on this route are protected by the SFU session's own encryptor instance, with its own joinNonce (18 §4.4 item 3), never by the media process's main instance. So a source sent on both routes during a route switch (§13.3) never shares a KID or a counter between the two pipelines.
  3. One counter per KID across encodings. All encodings and layers of one source share one KID (the KID names the source, not the encoding), so the sender MUST draw SFrame counter values for all of them from one counter per KID. No (key, counter) pair is ever reused (18).
  4. MediaAttestation. The sender attests every protected frame of every encoding and layer (18). MediaAttestation hashes each frame as 18 §9.2 specifies: the SfuFrameMetadata encoding together with the SFrame ciphertext that follows the clear prefix. Attestations travel on the sender's relay sv-control channel, and the relay forwards them to every listener whether or not it subscribed to the source on the relay (15 §4.5, 18 §9.6 item 5), so a viewer on the SFU route needs no relay subscription to receive them.
  5. What is authenticated. Only the codec and the clear prefix are authenticated, through SfuFrameMetadata (18 §8.5.3). The VP8 and VP9 RTP payload descriptors and the whole Dependency Descriptor, including its layer IDs, which the packetizer builds after the transform and which SFUs may rewrite, are unauthenticated forwarding hints. A modified hint can only make the SFU forward the wrong layers or make frames undecodable at the receiver, which an SFU could do anyway by dropping packets; the decoded content always comes from the authenticated, decrypted bitstream. RTP timestamps and the urn:3gpp:video-orientation extension aren't authenticated either (§16 item 2).

Clear prefixes (as in 18 §8.5.2, which is normative for secure calls):

Codec Clear prefix How the receiver knows its length
VP8 10 octets for a key frame (3-octet frame tag, 3-octet start code, 4 octets of width and height, RFC 6386 §9.1); 3 octets for an interframe Bit 0 of the first octet: 0 = key frame (10), 1 = interframe (3)
VP9 0 octets —
Opus 0 octets —

A frame shorter than its clear prefix plus 1 octet is invalid (18 §8.5.2 item 3). In insecure calls there is no transform for encryption; a client MAY attach a pass-through transform to enforce §10.3 on arrival, and MUST otherwise stop rendering an uncovered sender's track within 250 ms.

Rationale: browsers' receive pipelines read the VP8 frame tag and key-frame size before decoding, so those octets must stay clear; authenticating them as metadata means the SFU can read them but not change them.

12.7 SFU forwarding and per-viewer layers

  1. For each viewer and subscribed source, the SFU forwards the highest spatial layer (simulcast encoding or SVC spatial layer) and temporal layer that fit: the viewer's available downlink as estimated by the SFU's congestion control, after audio; the layer limits of the viewer's subscription (§12.3); and the viewer's priorities (a screen share the viewer has open before webcams).
  2. It lowers temporal layers at once, and changes spatial layers at a keyframe or switching point of the target layer, requesting one with PLI or FIR when needed.
  3. What one viewer receives never changes what the sender sends, except that the SFU MAY stop forwarding an encoding no viewer receives, which the sender's congestion control may then suspend (§12.5 item 3).
  4. The SFU forwards; it SHOULD NOT transcode. In secure calls it can't. It enforces leases as 15 §4.7 requires.

This is the SFU form of slow-viewer isolation: a slow viewer gets a lower layer; everyone else is unaffected.

12.8 Feedback on the SFU route

RTCP replaces the keyframe_request and video_report kinds on this route: receivers' WebRTC stacks send PLI, FIR, NACK and transport-wide feedback to the SFU, which handles them per §12.5 and §12.7. video_pref is still sent (§7.1 item 1); it drives codec selection (§12.4), and each viewer maps it onto its subscription's layer limits (§12.3).

12.9 Screen sound and receiving on the SFU route

  1. Source 2 of a screen share is an Opus track in the same media stream as source 1 (§12.3), with 16 §5.2's parameters and, in secure calls, constant bitrate (cbr=1, 16 §5.5). On this route the receiver routes the track through its audio engine (16 §8.4 item 5), and the platform's jitter buffer and packet-loss concealment replace 16 §9.3 and §9.4; ducking (16 §10), per-participant volume (16 §9.7) and lease enforcement still apply.
  2. The browser's own synchronisation of tracks in one media stream provides the presentation-timeline sync of §11.2 on this route.
  3. Webcam frames on this route are displayed as the platform schedules them; lip sync with the microphone, which travels on voice-dc/1, is best effort.
  4. The "held" label (§10.2) is driven by the absence of newly presented frames (for example requestVideoFrameCallback in browsers) for 750 ms.
  5. Source 2 sent without source 1 never uses this route (§4.7 item 1).

12.10 Test vector: VP8 clear prefix

A 1,280 × 720 VP8 key frame, version 0, shown, first partition 4,660 (0x1234) octets. Its frame tag is the 24-bit little-endian value (4660 << 5) | (1 << 4) | (0 << 1) | 0 = 0x024690, followed by the start code and the 14-bit width and height (scale bits 0), little-endian:

clear prefix (the clear_prefix field of SfuFrameMetadata, 10 octets): 90 46 02 9d 01 2a 00 05 d0 02
SfuFrameMetadata (18 §8.5.3; version 1, codec VP8 = 2, clear_prefix length 10, clear prefix): 01 02 0a 90 46 02 9d 01 2a 00 05 d0 02

An interframe with first partition 801 (0x0321) octets has the tag (801 << 5) | (1 << 4) | 1 = 0x006431:

clear prefix (3 octets):  31 64 00
SfuFrameMetadata:         01 02 03 31 64 00

The bytes that follow the clear prefix are the SFrame ciphertext of the rest of the frame; 18 §13.6 gives a complete encrypted example.

13. Path selection for video

13.1 Routes by context

15 owns routing (15 §7). For video it gives:

Context Video route
1:1 DM The relay. Never the SFU (15 §7.6).
Group DM (either security mode), voice channel The relay (videoRoute dc) or the SFU (videoRoute sfu), chosen by call control (§13.2).

Clients MUST NOT send video to each other directly (D-094): every video source travels through the hosting server's relay or SFU, in every context and security mode.

13.2 videoRoute policy

15 §7.6 lets this document refine call control's RECOMMENDED policy. An SFU-capable server's call control SHOULD switch a call whose context allows it (15 §7.6 item 1) to sfu when any of these holds:

  1. the call has more than 8 seats and at least one video source is active (15's rule);
  2. the video fan-out exceeds 24: the number of (viewer, source) pairs for sources 1 and 3 that the relay currently serves, as reported in relayctl.call_stats (21 §6.5.4), or, if the relay doesn't report it, the number of seats times the number of active video sources;
  3. when the relay reports viewer states in relayctl.call_stats (21 §6.5.4): for 30 s, more than a quarter of the relay's (viewer, source) pairs have been in a viewer state other than normal (§8.2), so viewers would gain from per-viewer layers. Call control whose relay doesn't report viewer states doesn't apply this item.

It SHOULD switch back to dc when the call has had at most 4 seats for 60 s, or no active video source for 120 s. It SHOULD NOT switch more than once per 60 s, and SHOULD NOT switch to sfu while a participant that is sending video didn't list sfu-rtp/1 in its join features.

Rationale: the relay forwards one copy per viewer and can adapt only by dropping frames, so its cost and its viewers' quality degrade as fan-out grows; an SFU with simulcast or SVC gives each viewer a suitable layer. Small calls stay on the relay, which is simpler and has lower latency.

13.3 Switching routes

  1. dc → sfu. On call.route_changed (15 §7.6), the sender publishes each active video source (and source 2 with source 1) on the SFU, starting with a keyframe, and keeps sending on video-dc/1 until frames flow on the SFU route, for at most 5 s (15 §7.6 item 4). Each viewer subscribes on the SFU to the sources it watches, with layer limits derived from the same VideoPreference (§12.3), keeps them in relay.subscribe until it displays the first decoded keyframe from the SFU track, then switches its display to that track and removes them from relay.subscribe. Until then it keeps showing the video-dc/1 stream, so the picture never goes blank.
  2. sfu → dc. The reverse: viewers add the sources they watch to relay.subscribe on call.route_changed; the sender's first video-dc/1 frame after the switch is a keyframe; viewers send keyframe_request with reason route_change if they haven't received one within 1,000 ms; the stream continues in the same media process with the next frameNumber.
  3. Route changes are silent (15 §7.7, 00 §4.12.5): no prompt, no indicator change, and the sharer's controls stay as they were.

14. Diagnostics: VideoStats

The client records a VideoStats object in each diagnostics Sample (15 §14.1), every 10 s and when a call closes, as the value of the optional Sample member video (15 §14.1, §15 item 3). 15 uploads Samples to /v1/diagnostics under its consent rules (15 §14.2). Counters count events since the previous Sample. VideoStats contains no pictures, no content and no key material.

Size in uploads. A report body is limited to 64 KiB (15 §14.3). In an uploaded report, only the last 6 Samples carry video, and each of those VideoStats carries at most 4 recv entries (the entries with the most framesDisplayed; the rest are summed into the pid −1 entry). With these limits a report of 30 Samples stays well under 48 KiB. 15's scalar Sample members are derived from VideoStats: videoKbpsSent and videoKbpsReceived from the octets sent and received, framesHeld as the sum of heldEntries over recv, and keyframeRequests as the sum of keyframeRequestsSent.

Member Type Required Meaning
send array of VideoSendStats Yes One entry per video source sent in the interval (may be empty).
recv array of VideoRecvStats Yes One entry per (pid, sourceId) received in the interval (may be empty). At most 32 entries when recorded and 4 when uploaded; the rest are summed into an entry with pid = −1.
invalidDrops integer Yes Fragments or frames dropped as invalid (§6.8.1).
codecUnsupported integer Yes Fragments dropped for an unknown or undecodable codec (§6.8.1).

VideoSendStats

Member Type Required Meaning
sourceId integer Yes 1 or 3
route string Yes The route that carried most of the source's frames in the interval: relay or sfu. Unknown values: store as given (diagnostics only).
videoRoute string Yes The call's videoRoute (15 §7.6): dc or sfu. Unknown values: store as given.
codec string Yes Codec name (§5.1). Unknown values: store as given.
contentHint string or null Yes detail or motion for source 1; null for source 3. Unknown values: store as given.
rung integer Yes Current effective rung (dc only; −1 on sfu)
controllerRung integer Yes Current controller rung r (§9.2; −1 on sfu)
width, height, fps integer Yes Current encoded size and frame rate
targetKbps integer Yes Current encoder target
framesEncoded integer Yes Frames encoded
keyframes integer Yes Keyframes sent
keyframeRequests integer Yes Requests received
picturesSkipped integer Yes Pictures not encoded because of backlog (§8.1)
framesDiscarded integer Yes Frames discarded after encoding (§5.9, §6.6, §8.1)
pressureSignals integer Yes §9.1
stepDowns, stepUps, failedStepUps integer Yes §9.2
viewers integer Yes Known viewers (§9.1)
slowViewers integer Yes Viewers whose state isn't normal

VideoRecvStats

Member Type Required Meaning
pid integer Yes Sender (−1 for the summed overflow entry)
sourceId integer Yes 1 or 3
route string Yes relay or sfu (the route of most frames in the interval). Unknown values: store as given (diagnostics only).
codec string Yes Codec name (§5.1). Unknown values: store as given.
width, height integer Yes Size of the last decoded picture
fragmentsReceived, fragmentsDuplicate, fragmentsLate integer Yes §6.9 (0 on sfu)
framesComplete, framesIncomplete integer Yes §6.9
framesDecoded, framesDisplayed, framesShownLate integer Yes §6.10, §11.2
framesLate, framesUndecodable integer Yes §6.10
keyframeRequestsSent integer Yes §7.2
decryptFailures, leaseDrops, attestationStops integer Yes §10.3, §10.4
heldMs integer Yes Time spent in held
heldEntries integer Yes Transitions into held (§10.1)
avSkewP95Ms integer or null Yes Source 1 with source 2: 95th percentile of the absolute presentation skew; otherwise null
lipSyncP95Ms integer or null Yes Source 3: 95th percentile of webcam lateness relative to the voice; otherwise null

The member names inside VideoStats are defined here; the Sample, the diagnostics report, upload and retention belong to 15.

15. Cross-document notes (informative)

These items align this document with others. They are technical, not owner decisions, and are listed here for the lead.

  1. Codecs in secure calls on the SFU route (18 §8.5.2). This document allows only VP8 and VP9 there (§12.4), as 18 requires. This costs battery on phones that encode only H.264 in hardware. Revisit when the SFrame RTP payload format (draft-ietf-avtcore-rtp-sframe) and generic packetization are available in browsers.
  2. The Dependency Descriptor and 00 HP-5 (18 §8.5.3). This document follows 18 §8.5.3 and 00 HP-5. Only the codec and the clear prefix are authenticated, through SfuFrameMetadata. The RTP payload descriptors and the whole Dependency Descriptor, layer IDs included, stay readable as unauthenticated forwarding hints (§12.6 item 5).
  3. VideoStats in diagnostics (15 §14.1). 15 §14.1 now defines the optional Sample member video (VideoStats, §14) and derives framesHeld as §14 does; 15 §14.3 applies §14's upload bounds.
  4. SFU subscriptions (15 §8.2). 15's subscriptions carry layer limits only, and 15 has no message by which the SFU pauses a sender's encoding or reports a publisher's audience. §12.3 maps VideoPreference onto layer limits, §12.5 item 3 relies on the SFU's congestion feedback for unwatched encodings, and §7.5's audience pause doesn't apply on the SFU route. If 15 later adds a preference member to subscriptions, the SFU adapter could use it directly.
  5. Copy (20). 20 §11.10 defines the copy and surface IDs for the sharing and camera indicators, the pause, the viewer placeholders, the share options and the not-permitted messages.
  6. The attestation bound (00 §10 item 9, 18 §14 item 2). 00 §10 item 9 now states 18's bound; §16 item 4 states it for video.

16. Security considerations

  1. Insecure calls offer no protection against servers. In an insecure call the relay and the SFU see and could record every screen share, every application sound and every webcam picture; the hosting server can too. Only DTLS protects the hops against third parties (00 §5.1, R-09). The open-lock indicator is the user's notice (00 §4.12.6); no extra warning is shown when sharing (D-055).
  2. Secure calls protect content, not metadata. In a secure call every picture is SFrame-protected as a whole frame (§6.5, §12.6). On video-dc/1 the frame header (including pid, timestamp, flags and rotation) is authenticated, so a relay can't read, alter, re-time, re-flag or rotate video, and with the KID checks of 18 §4.5 it can't re-attribute it either. On sfu-rtp/1 only SfuFrameMetadata (the codec and the clear prefix) is authenticated: an SFU can't read or alter the picture or, given 18 §4.5's checks against the Track, re-attribute it, but it can change presentation timing and webcam orientation, which travel in RTP timestamps and the unauthenticated urn:3gpp:video-orientation extension (§12.4, §12.6 item 5). Servers still see, by design (00 §5.4): who shares and when, who watches whom (subscriptions and VideoPreferences), frame sizes and timing, keyframe and discardable flags, the codec, and on the SFU route the VP8 clear prefix, which includes the key-frame picture size. Variable frame sizes can reveal activity on a shared screen (typing, scrolling, scene changes), and published research shows that the burst pattern of encrypted video can identify a known video being played. v1 doesn't pad video; this is an accepted residual risk.
  3. Unauthenticated fields can only cause loss. The fragment fields (§6.2), the RTP payload descriptors and the Dependency Descriptor, including its layer IDs (§12.6 item 5), and all feedback (§7) are outside end-to-end authentication. Tampering with them can make frames incomplete, undecodable or forwarded at the wrong layer, or make a sender change its rung or send keyframes within §7.2's limits. Senders accept the relay-originated feedback kinds only from their own relay (§7.1 item 3). A relay or SFU can cause the same harm by dropping traffic, so these fields add no power to an attacker on the path.
  4. Members can derive each other's SFrame keys. SFrame keys come from the shared MLS group (D-041), so a member who colludes with a relay can inject frames under another member's KID. MediaAttestation stops the forged source normally within 1 s of the first forged frame; if the attacker also suppresses the real sender's attestations, a forged picture can be visible for about 3 s per episode, for at most 3 counted episodes per participant and source per minute, whatever joinNonce is used, plus up to about 3 s per minute that receivers excuse as route disruptions (18 §9.7 item 11, §9.8, §14 item 2; D-043, D-080). Receivers stop the source silently and never show frames accepted while it was stopped (§10.4).
  5. Decoders are a large attack surface. Video decoders parse complex bitstreams. In an insecure public channel, anyone granted speak_and_share can send a crafted frame to every viewer; in a secure call, any member can. Receivers MUST use robust decoders and SHOULD sandbox decoding (§10.5). Secure calls pass only authenticated plaintext to decoders, which limits the attackers to members.
  6. Resource exhaustion is bounded. Reassembly is limited to 32 slots and 8 MiB per stream and 64 MiB per call, frames to 2 MiB (a slot that grows beyond it is abandoned at once), fragments to 2,048 per frame (§6.7, §6.9); relays cap inbound video per source (§8.3); viewers can force at most one keyframe per second per source, and slow viewers one per 10 s each (§7.2). A malicious viewer therefore can't make a sender flood everyone with keyframes, and a malicious sender can't exhaust a receiver's memory.
  7. Bounded authority covers video. Every video path goes through the relay or the SFU (D-094), and the server enforces leases on each of them, so a revoked sender's video stops within 4 s even if its client is modified, and its picture disappears within 250 ms of the tick that omits it (§10.3, 15 §4.8).
  8. Accidental disclosure is the main real-world risk of screen sharing. The requirements of §4.2, §4.5 and §4.6 (capture only what the user picked, never start a camera or share without a deliberate action, exclude the client's own windows, a persistent and honest indicator with a stop control, a pause that covers picture and sound, a webcam that comes back off after a drop, and a screen share that resumes by itself only when the seat was restored within 30 s, D-090) reduce it. Sharing a whole screen can still show notifications and other private windows; clients offer window capture first for that reason.
  9. Live only. No picture captured while a sender couldn't send is sent later (§5.9), so viewers never see, after a reconnect, what the sharer showed during an outage believing nobody could see it.
  10. Participants don't learn each other's IP addresses. Video travels only through the hosting server's relay or SFU (D-094), so other call participants never learn a user's IP address from a call; only the servers the client connects to see it.
  11. Audio-level leakage. The ssrc-audio-level extension is forbidden on source 2 in secure calls (§12.4), and source 2 uses constant-bitrate Opus there (16 §5.5), so the loudness pattern of shared sound isn't exposed beyond talkspurt timing.

17. Open questions

None. OQ-17-1 was answered by the owner: a screen share resumes by itself only when the seat was restored within 30 s, the webcam comes back off, and the sharing indicator says the user isn't being seen during the outage (D-090, §4.5).

18. References

18.1 Normative

  • RFC 2119, RFC 8174 — requirement key words
  • RFC 5234 — ABNF
  • RFC 1982 — serial number arithmetic
  • RFC 8259 — JSON; RFC 7493 — I-JSON
  • RFC 6386 — VP8 data format and decoding guide
  • VP9 Bitstream and Decoding Process Specification, version 0.7 (WebM Project)
  • ITU-T H.264 (08/2024) — Advanced video coding for generic audiovisual services
  • AV1 Bitstream and Decoding Process Specification (Alliance for Open Media, 2019, with errata)
  • RTP Payload Format for AV1 (Alliance for Open Media), including the Dependency Descriptor RTP header extension (its appendix A)
  • RFC 6716 — Opus; RFC 7587 — RTP payload format for Opus
  • RFC 9605 — Secure Frame (SFrame)
  • RFC 3550 — RTP; RFC 4585 — RTP/AVPF; RFC 4588 — RTP retransmission; RFC 5104 — codec control messages (FIR); RFC 5506 — reduced-size RTCP; RFC 5761 — RTP and RTCP on one port; RFC 5764 — DTLS-SRTP; RFC 7714 — AES-GCM for SRTP; RFC 9335 — cryptex (header extension encryption)
  • RFC 7741 — RTP payload format for VP8; RFC 9628 — RTP payload format for VP9; RFC 6184 — RTP payload format for H.264
  • RFC 8834 — media transport and use of RTP in WebRTC; RFC 8852 — RTP stream identifier; RFC 8853 — simulcast in SDP; RFC 9143 — BUNDLE; RFC 9429 — JSEP
  • RFC 6464 — client-to-mixer audio level extension
  • draft-holmer-rmcat-transport-wide-cc-extensions-01 — transport-wide congestion control
  • 3GPP TS 26.114 — coordination of video orientation (urn:3gpp:video-orientation)
  • RFC 8831, RFC 8832 — WebRTC data channels; RFC 8841 — SDP for SCTP over DTLS; RFC 8445 — ICE; RFC 6544 — ICE-TCP; RFC 7675 — ICE consent freshness
  • W3C WebRTC 1.0; W3C WebRTC Encoded Transform; W3C Scalable Video Coding (SVC) Extension for WebRTC; W3C WebCodecs; W3C Media Capture and Streams; W3C Screen Capture; W3C MediaStreamTrack Content Hints
  • 00-overview.md, 15-calls-control.md, 16-audio.md, 18-media-e2ee.md of this specification

18.2 Informative

  • ITU-R BT.1359-1 — relative timing of sound and vision for broadcasting
  • draft-ietf-avtcore-rtp-sframe — RTP payload format for SFrame
  • draft-ietf-rmcat-gcc — Google congestion control for real-time communication
  • RFC 8888 — RTCP feedback for congestion control
  • R. Schuster, V. Shmatikov, E. Tromer, "Beauty and the Burst: Remote Identification of Encrypted Video Streams", USENIX Security 2017
  • 10-roles-moderation.md, 20-client-requirements.md, 21-deployment-operations.md, 22-security-considerations.md of this specification
  • spec/DECISIONS.md — decision log
  • The project brief, §5 — the old voice and video design