#[non_exhaustive]pub enum RtcError {
Show 19 variants
RemoteSdp(String),
Sdp(SdpError),
Rtp(RtpError),
Io(Error),
Dtls(DtlsError),
Packet(Mid, Pt, PacketError),
UnknownPt(Pt),
UnknownRid(Rid),
NoSenderSource,
ResendRequiresRtxPt,
NotSendingDirection(Direction),
NotReceivingDirection,
NoReceiverSource(Option<Rid>),
FeedbackNotEnabled(KeyframeRequestKind),
Net(NetError),
Ice(IceError),
Sctp(SctpError),
ChangesOutOfOrder,
WriteWithoutPoll,
}
Expand description
Errors for the whole Rtc engine.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
RemoteSdp(String)
Some problem with the remote SDP.
Sdp(SdpError)
SDP errors.
Rtp(RtpError)
RTP errors.
Io(Error)
Other IO errors.
Dtls(DtlsError)
DTLS errors
Packet(Mid, Pt, PacketError)
RTP packetization error
UnknownPt(Pt)
The PT attempted to write to is not known.
UnknownRid(Rid)
The Rid attempted to write is not known.
NoSenderSource
If MediaWriter.write fails because we can’t find an SSRC to use.
ResendRequiresRtxPt
Using write_rtp
for a stream with RTX without providing a rtx_pt.
NotSendingDirection(Direction)
Direction does not allow sending of Media data.
NotReceivingDirection
Direction does not allow receiving media data.
NoReceiverSource(Option<Rid>)
If MediaWriter.request_keyframe fails because we can’t find an SSRC to use.
FeedbackNotEnabled(KeyframeRequestKind)
The keyframe request failed because the kind of request is not enabled in the media.
Net(NetError)
Parser errors from network packet parsing.
Ice(IceError)
ICE agent errors.
Sctp(SctpError)
SCTP (data channel engine) errors.
ChangesOutOfOrder
SdpApi
was not done in a correct order.
For SdpApi
:
- We created an
SdpOffer
. - The remote side created an
SdpOffer
at the same time. - We applied the remote side
SdpApi::accept_offer()
. - The we used the
SdpPendingOffer
created in step 1.
WriteWithoutPoll
The Writer
was used twice without doing Rtc::poll_output
in between. This
is an incorrect usage pattern of the str0m API.