Skip to main content

Module rate

Module rate 

Source
Expand description

Shared rate control for media senders.

Control turns each grant from a [bandwidth::Consumer] into the target rate a sender should produce, so audio, video, and transcode back off the same way. Grant drives it from a live grant. A rendition encoded beside lower ones of the same source sets Policy::lower, and stops once its grant can no longer fund it, so the lower renditions keep their share.

Structs§

Control
Maps bandwidth estimates onto a target bitrate, per a Policy.
Grant
Follows a bandwidth grant through a Control on the ambient clock.
Policy
How a bandwidth estimate maps onto the bitrate a sender should produce at.

Enums§

Target
What a sender should be doing, per its Control.

Constants§

RETRY
The soonest a failed change is retried: the time the ramp takes to clear the hysteresis band, so a sender that keeps failing is asked at most this often.