1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#![warn(rust_2018_idioms)]
#![allow(dead_code)]
use ::dtls::extension::extension_use_srtp::SrtpProtectionProfile;
pub mod api;
pub mod data;
mod error;
pub mod media;
pub mod peer;
pub mod stats;
pub mod util;
pub use error::Error;
#[macro_use]
extern crate lazy_static;
pub(crate) const UNSPECIFIED_STR: &str = "Unspecified";
pub(crate) const SSRC_STR: &str = "ssrc";
pub(crate) const RECEIVE_MTU: usize = 1460;
pub(crate) const SIMULCAST_PROBE_COUNT: usize = 10;
pub(crate) const SIMULCAST_MAX_PROBE_ROUTINES: u64 = 25;
pub(crate) const MEDIA_SECTION_APPLICATION: &str = "application";
pub(crate) const RTP_OUTBOUND_MTU: usize = 1200;
pub(crate) const RTP_PAYLOAD_TYPE_BITMASK: u8 = 0x7F;
pub(crate) fn default_srtp_protection_profiles() -> Vec<SrtpProtectionProfile> {
vec![
SrtpProtectionProfile::Srtp_Aead_Aes_128_Gcm,
SrtpProtectionProfile::Srtp_Aes128_Cm_Hmac_Sha1_80,
]
}