Skip to main content

Module source_policy

Module source_policy 

Source
Expand description

Per-room audio admission and receiver-video allocation.

SourcePolicyTurn serializes policy refreshes with publication activity so their transport effects cannot overtake each other. Each turn combines committed routes, active-speaker observations, receiver bandwidth and source bitrate in a SourcePolicySnapshot. Planning holds a room-state read guard. Planned transport controls run only after that guard is released.

Audio policy admits observed speakers up to the room limit and blocks audio for deaf receivers. Video policy maps receiver layout roles, source caps and bandwidth estimates to encoding selectors, route activity and BWE targets.

Gate and activity controls must be accepted before the matching ConsumerPacketSelectionUpdate commits to room state. Committed hysteresis observations schedule a delayed follow-up turn until the decision settles.

Re-exportsยง

pub use self::video::VideoAdmissionRank;

Modulesยง

action ๐Ÿ”’
audio ๐Ÿ”’
input ๐Ÿ”’
turn ๐Ÿ”’
source-policy apply ownership without transport awaits under the room lock
video ๐Ÿ”’