Struct sdp::description::media::MediaDescription[][src]

pub struct MediaDescription {
    pub media_name: MediaName,
    pub media_title: Option<Information>,
    pub connection_information: Option<ConnectionInformation>,
    pub bandwidth: Vec<Bandwidth>,
    pub encryption_key: Option<EncryptionKey>,
    pub attributes: Vec<Attribute>,
}
Expand description

MediaDescription represents a media type. https://tools.ietf.org/html/rfc4566#section-5.14

Fields

media_name: MediaName

m=<media> <port>/<number of ports> <proto> <fmt> ...

https://tools.ietf.org/html/rfc4566#section-5.14

media_title: Option<Information>connection_information: Option<ConnectionInformation>

c=<nettype> <addrtype> <connection-address>

https://tools.ietf.org/html/rfc4566#section-5.7

bandwidth: Vec<Bandwidth>encryption_key: Option<EncryptionKey>

k=<method>

k=<method>:<encryption key>

https://tools.ietf.org/html/rfc4566#section-5.12

attributes: Vec<Attribute>

Attributes are the primary means for extending SDP. Attributes may be defined to be used as “session-level” attributes, “media-level” attributes, or both.

https://tools.ietf.org/html/rfc4566#section-5.12

Implementations

attribute returns the value of an attribute and if it exists

new_jsep_media_description creates a new MediaName with some settings that are required by the JSEP spec.

with_property_attribute adds a property attribute ‘a=key’ to the media description

with_value_attribute adds a value attribute ‘a=key:value’ to the media description

with_fingerprint adds a fingerprint to the media description

with_ice_credentials adds ICE credentials to the media description

with_codec adds codec information to the media description

with_media_source adds media source information to the media description

with_candidate adds an ICE candidate to the media description Deprecated: use WithICECandidate instead

with_transport_cc_extmap adds an extmap to the media description

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.