Skip to main content

Module bitrate

Module bitrate 

Source
Expand description

Worker-local RTC payload bitrate observations.

The packet loop records tracked ingress payload and local RTP payload queued into str0m. Egress counters do not reflect UDP send success or transport overhead. Shared atomic counters keep per-packet updates off the registry lock, which is used only to add or remove counters and collect snapshots.

Snapshots publish the most recently completed window and expire it after one second without packets.

Structsยง

BitrateRegistry
MediaBitrateCounter ๐Ÿ”’
SessionIncomingBitrates ๐Ÿ”’

Enumsยง

IncomingBitrateObservation ๐Ÿ”’
Packet-loop follow-up produced by one incoming bitrate observation.

Constantsยง

BITRATE_WINDOW_NANOS ๐Ÿ”’

Functionsยง

bitrate_per_second ๐Ÿ”’