#[non_exhaustive]pub enum RtcpSessionEvent {
SsrcCollision {
ssrc: u32,
replacement: u32,
},
RemoteCname {
ssrc: u32,
cname: String,
},
SourceTimedOut {
ssrc: u32,
},
ReportingSsrc {
ssrc: Option<u32>,
},
RoundTripTime {
ssrc: u32,
rtt: Duration,
},
}Expand description
What the session tells the rest of the chain and the peer connection.
It travels application-ward as an Attribute::Custom on an empty RTCP packet; read it
with AttributedPacket::custom.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
SsrcCollision
RFC 3550 8.2: a packet arrived from another source that uses ssrc, one of this
endpoint’s own. replacement is an SSRC no known source uses, for the stream to move
to; a reporting SSRC the session chose itself has already moved.
Fields
RemoteCname
RFC 3550 6.5.1: the remote source ssrc named its CNAME (or changed it).
SourceTimedOut
RFC 3550 6.3.5: nothing was heard from the remote source for five report intervals.
ReportingSsrc
The SSRC the session reports from while the endpoint has no media SSRC, which it drew
itself; None once there is none (a stream took it over, it said BYE). RFC 8108
section 6.1: “An endpoint that has never sent an RTP stream will have an SSRC that it
uses for RTCP reporting. If that endpoint wants to start sending an RTP stream, it is
RECOMMENDED that it use its existing SSRC for that stream”. A local stream bound under
this SSRC takes it over: the same participant, no BYE.
RoundTripTime
RFC 3550 6.4.1: the round-trip time to the receiver that reported on the local ssrc.