Struct str0m::media::PayloadParams
source · 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=42001f
Implementations§
source§impl PayloadParams
impl PayloadParams
sourcepub fn pt_rtx(&self) -> Option<Pt>
pub fn pt_rtx(&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 clock_rate(&self) -> u32
pub fn clock_rate(&self) -> u32
Clock rate of the codec.
sourcepub fn fmtp(&self) -> &FormatParams
pub fn fmtp(&self) -> &FormatParams
Codec specific format parameters. This might carry additional config for things like h264.
Trait Implementations§
source§impl Clone for PayloadParams
impl Clone for PayloadParams
source§fn clone(&self) -> PayloadParams
fn clone(&self) -> PayloadParams
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more