pub struct RtpEncodingParameters {
pub ssrc: Option<u32>,
pub rid: Option<String>,
pub codec_payload_type: Option<u8>,
pub rtx: Option<RtpEncodingParametersRtx>,
pub dtx: Option<bool>,
pub scalability_mode: ScalabilityMode,
pub max_bitrate: Option<u32>,
}
Expand description
Provides information relating to an encoding, which represents a media RTP stream and its associated RTX stream (if any).
Fields§
§ssrc: Option<u32>
The media SSRC.
rid: Option<String>
The RID RTP extension value. Must be unique.
codec_payload_type: Option<u8>
Codec payload type this encoding affects. If unset, first media codec is chosen.
rtx: Option<RtpEncodingParametersRtx>
RTX stream information. It must contain a numeric ssrc field indicating the RTX SSRC.
dtx: Option<bool>
It indicates whether discontinuous RTP transmission will be used. Useful for audio (if the codec supports it) and for video screen sharing (when static content is being transmitted, this option disables the RTP inactivity checks in mediasoup). Default false.
scalability_mode: ScalabilityMode
Number of spatial and temporal layers in the RTP stream.
max_bitrate: Option<u32>
Maximum number of bits per second to allow a track encoded with this encoding to use.
Trait Implementations§
Source§impl Clone for RtpEncodingParameters
impl Clone for RtpEncodingParameters
Source§fn clone(&self) -> RtpEncodingParameters
fn clone(&self) -> RtpEncodingParameters
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 RtpEncodingParameters
impl Debug for RtpEncodingParameters
Source§impl Default for RtpEncodingParameters
impl Default for RtpEncodingParameters
Source§fn default() -> RtpEncodingParameters
fn default() -> RtpEncodingParameters
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RtpEncodingParameters
impl<'de> Deserialize<'de> for RtpEncodingParameters
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for RtpEncodingParameters
impl PartialEq for RtpEncodingParameters
Source§impl PartialOrd for RtpEncodingParameters
impl PartialOrd for RtpEncodingParameters
Source§impl Serialize for RtpEncodingParameters
impl Serialize for RtpEncodingParameters
impl StructuralPartialEq for RtpEncodingParameters
Auto Trait Implementations§
impl Freeze for RtpEncodingParameters
impl RefUnwindSafe for RtpEncodingParameters
impl Send for RtpEncodingParameters
impl Sync for RtpEncodingParameters
impl Unpin for RtpEncodingParameters
impl UnwindSafe for RtpEncodingParameters
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more