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> ...
media_title: Option<Information>
i=<session description>
connection_information: Option<ConnectionInformation>
c=<nettype> <addrtype> <connection-address>
bandwidth: Vec<Bandwidth>
b=<bwtype>:<bandwidth>
encryption_key: Option<EncryptionKey>
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.
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 the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for MediaDescription
impl Send for MediaDescription
impl Sync for MediaDescription
impl Unpin for MediaDescription
impl UnwindSafe for MediaDescription
Blanket Implementations
Mutably borrows from an owned value. Read more