pub struct PayloadParams { /* private fields */ }Expand description
Group of parameters for a payload type (PT).
In the SDP a payload type has a number of associated parameters. See example below:
a=rtpmap:96 H264/90000
a=rtcp-fb:96 goog-remb
a=rtcp-fb:96 transport-cc
a=rtcp-fb:96 ccm fir
a=rtcp-fb:96 nack
a=rtcp-fb:96 nack pli
a=fmtp:96 level-asymmetry-allowed=1;packetization-mode=0;profile-level-id=42001fImplementations§
Source§impl PayloadParams
impl PayloadParams
Sourcepub fn new(pt: Pt, resend: Option<Pt>, spec: CodecSpec) -> Self
pub fn new(pt: Pt, resend: Option<Pt>, spec: CodecSpec) -> Self
Creates new payload params.
ptis the payload type RTP mapping in the session.resendis the payload type used for (RTX) resend channel.specconfigures details about the codec.
Sourcepub fn resend(&self) -> Option<Pt>
pub fn resend(&self) -> Option<Pt>
Whether these parameters are repairing some other set of parameters. This is used to, via PT, separate RTX resend streams from the main stream.
Sourcepub fn set_resend(&mut self, resend: Option<Pt>)
pub fn set_resend(&mut self, resend: Option<Pt>)
Sets the RTX resend payload type. Use None to disable RTX, in which
case retransmissions (if NACK is enabled) are sent in-band on the main SSRC.
Sourcepub fn set_fb_transport_cc(&mut self, fb_transport_cc: bool)
pub fn set_fb_transport_cc(&mut self, fb_transport_cc: bool)
Sets whether the payload use the TWCC feedback mechanic.
Sourcepub fn fb_transport_cc(&self) -> bool
pub fn fb_transport_cc(&self) -> bool
Whether the payload use the TWCC feedback mechanic.
Sourcepub fn set_fb_nack(&mut self, fb_nack: bool)
pub fn set_fb_nack(&mut self, fb_nack: bool)
Sets whether the payload uses NACK to request resends.
Sourcepub fn set_fb_pli(&mut self, fb_pli: bool)
pub fn set_fb_pli(&mut self, fb_pli: bool)
Set whether the payload uses the PLI (Picture Loss Indication) mechanic.
Sourcepub fn fb_pli(&self) -> bool
pub fn fb_pli(&self) -> bool
Whether the payload uses the PLI (Picture Loss Indication) mechanic.
Sourcepub fn set_fb_fir(&mut self, fb_fir: bool)
pub fn set_fb_fir(&mut self, fb_fir: bool)
Set whether the payload uses the FIR (Full Intra Request) mechanic.
Sourcepub fn set_fb_remb(&mut self, fb_remb: bool)
pub fn set_fb_remb(&mut self, fb_remb: bool)
Set whether the payload uses the REMB (Receiver Estimated Maximum Bitrate) mechanic.