[][src]Struct skyway_webrtc_gateway_api::media::MediaParams

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>,
}

Parameters for sending media

Fields

band_width: usize

band width between Peers

codec: String

Codec which caller side want to use. Video: "H264" or "VP8", Audio: "OPUS" or "G711". It will be used in SDP.

media_id: MediaId

Identify 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

impl Clone for MediaParams[src]

impl Debug for MediaParams[src]

impl<'de> Deserialize<'de> for MediaParams[src]

impl PartialEq<MediaParams> for MediaParams[src]

impl Serialize for MediaParams[src]

impl StructuralPartialEq for MediaParams[src]

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.