Struct skyway_webrtc_gateway_api::media::MediaParams
source · pub struct MediaParams {
pub band_width: usize,
pub codec: String,
pub media_id: MediaId,
pub rtcp_id: Option<RtcpId>,
pub payload_type: Option<u16>,
pub sampling_rate: Option<usize>,
}Expand description
Parameters for sending media
Fields
band_width: usizeband width between Peers
codec: StringCodec which caller side want to use. Video: "H264" or "VP8", Audio: "OPUS" or "G711". It will be used in SDP.
media_id: MediaIdIdentify which media should be redirected
rtcp_id: Option<RtcpId>Identify which rtcp should be redirected
payload_type: Option<u16>Payload type which caller side want to use. It will be used in SDP.
sampling_rate: Option<usize>Sampling rate which media uses
Trait Implementations
sourceimpl Clone for MediaParams
impl Clone for MediaParams
sourcefn clone(&self) -> MediaParams
fn clone(&self) -> MediaParams
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for MediaParams
impl Debug for MediaParams
sourceimpl<'de> Deserialize<'de> for MediaParams
impl<'de> Deserialize<'de> for MediaParams
sourcefn 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
sourceimpl PartialEq<MediaParams> for MediaParams
impl PartialEq<MediaParams> for MediaParams
sourcefn eq(&self, other: &MediaParams) -> bool
fn eq(&self, other: &MediaParams) -> bool
sourceimpl Serialize for MediaParams
impl Serialize for MediaParams
impl StructuralPartialEq for MediaParams
Auto Trait Implementations
impl RefUnwindSafe for MediaParams
impl Send for MediaParams
impl Sync for MediaParams
impl Unpin for MediaParams
impl UnwindSafe for MediaParams
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more