rtc 0.9.0

Sans-I/O WebRTC implementation in Rust
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://w3c.github.io/webrtc-pc/#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>,
}