rtci 0.5.0

A sans-I/O WebRTC implementation: peer connections with ICE, DTLS-SRTP, SCTP data channels, RTP/RTCP and JSEP negotiation
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use crate::rtp_transceiver::rtp_sender::rtp_codec::RTCRtpCodec;
use crate::rtp_transceiver::rtp_sender::rtp_header_extension_capability::RTCRtpHeaderExtensionCapability;

/// RTP capabilities representing available codecs and header extensions.
///
/// Used to describe what a transceiver is capable of sending or receiving.
///
/// ## Specifications
///
/// * [W3C](https://www.w3.org/TR/webrtc/#rtcrtpcapabilities)
#[derive(Default, Debug, Clone)]
pub struct RTCRtpCapabilities {
    /// List of supported codecs
    pub codecs: Vec<RTCRtpCodec>,
    /// List of supported RTP header extensions
    pub header_extensions: Vec<RTCRtpHeaderExtensionCapability>,
}