pub struct Ssrc {
pub id: u32,
pub attribute: String,
pub value: Option<String>,
}Expand description
a=ssrc:<ssrc-id> <attribute>[:<value>] (RFC 5576 section 4.1): one source attribute of
one synchronization source.
A source with several attributes has several lines. The source attributes RFC 5576
defines are cname (section 6.1), previous-ssrc (section 6.2) and fmtp
(section 6.3); WebRTC endpoints also write msid (draft-ietf-mmusic-msid, before
RFC 8830 moved it to the media level) and the unregistered mslabel and label. Any
other attribute name is kept: Ssrc::attribute and Ssrc::value always hold what
the line said.
Fields§
§id: u32The synchronization source.
attribute: StringThe source attribute’s name, a token.
value: Option<String>The source attribute’s value: what follows the name’s colon.
Implementations§
Source§impl Ssrc
impl Ssrc
Sourcepub fn cname(&self) -> Option<&str>
pub fn cname(&self) -> Option<&str>
cname:<cname> (RFC 5576 section 6.1): the source’s RTCP canonical name.
Sourcepub fn previous_ssrcs(&self) -> Option<Result<Vec<u32>>>
pub fn previous_ssrcs(&self) -> Option<Result<Vec<u32>>>
previous-ssrc:<ssrc-id> *(SP <ssrc-id>) (RFC 5576 section 6.2): the SSRCs this
source used before. None when this line is another attribute.