Struct str0m::media::CodecConfig
source · pub struct CodecConfig { /* private fields */ }
Expand description
Session config for all codecs.
Implementations§
source§impl CodecConfig
impl CodecConfig
sourcepub fn new_with_defaults() -> Self
pub fn new_with_defaults() -> Self
Creates a new config with all default configurations enabled.
sourcepub fn add_config(
&mut self,
pt: Pt,
resend: Option<Pt>,
codec: Codec,
clock_rate: u32,
channels: Option<u8>,
fmtps: FormatParams
)
pub fn add_config(
&mut self,
pt: Pt,
resend: Option<Pt>,
codec: Codec,
clock_rate: u32,
channels: Option<u8>,
fmtps: FormatParams
)
Manually configure a payload type.
sourcepub fn add_h264(
&mut self,
pt: Pt,
resend: Option<Pt>,
packetization_mode: bool,
profile_level_id: u32
)
pub fn add_h264(
&mut self,
pt: Pt,
resend: Option<Pt>,
packetization_mode: bool,
profile_level_id: u32
)
Convenience for adding a h264 payload type.
sourcepub fn add_default_opus(&mut self)
pub fn add_default_opus(&mut self)
Add a default OPUS payload type.
sourcepub fn add_default_vp8(&mut self)
pub fn add_default_vp8(&mut self)
Add a default VP8 payload type.
sourcepub fn add_default_h264(&mut self)
pub fn add_default_h264(&mut self)
Add a default H264 payload type.
sourcepub fn add_default_vp9(&mut self)
pub fn add_default_vp9(&mut self)
Add a default VP9 payload type.
Trait Implementations§
source§impl Clone for CodecConfig
impl Clone for CodecConfig
source§fn clone(&self) -> CodecConfig
fn clone(&self) -> CodecConfig
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 moresource§impl Debug for CodecConfig
impl Debug for CodecConfig
source§impl Default for CodecConfig
impl Default for CodecConfig
source§fn default() -> CodecConfig
fn default() -> CodecConfig
Returns the “default value” for a type. Read more