pub struct EncodingParameters {
pub rid: String,
pub active: bool,
pub codec: Option<Codec>,
pub max_bitrate: Option<u32>,
pub scale_resolution_down_by: Option<u8>,
pub scalability_mode: Option<ScalabilityMode>,
}
Expand description
Representation of an RTCRtpEncodingParameters.
Fields§
§rid: String
RTP stream ID (RID) to be sent using the RID header extension.
active: bool
Indicator whether this encoding is actively being sent.
Being false
doesn’t cause the SSRC to be removed, so an RTCP BYE
is not sent.
codec: Option<Codec>
Concrete Codec
being used for this encoding’s RTP stream.
If None
, then any negotiated codec can be used.
max_bitrate: Option<u32>
Maximum bitrate that can be used to send this encoding.
User agent is free to allocate bandwidth between the encodings, as long as this value is not exceeded.
scale_resolution_down_by: Option<u8>
Factor for scaling down video’s resolution in each dimension before sending.
Only present for video encodings.
For example, if this value is 2
, a video will be scaled down by a
factor of 2 in each dimension, resulting in sending a video of one
quarter the size. If this value is 1
, the video won’t be affected.
Must be greater than or equal to 1
.
scalability_mode: Option<ScalabilityMode>
SVC (Scalable Video Coding) scalability mode.
Trait Implementations§
Source§impl Clone for EncodingParameters
impl Clone for EncodingParameters
Source§fn clone(&self) -> EncodingParameters
fn clone(&self) -> EncodingParameters
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more