enigma-rtc 0.1.0

WebRTC signaling and session management for Enigma Messenger
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#[derive(Debug, Clone)]
pub struct RtcConfig {
    pub ice_servers: Vec<String>,
    pub prefer_codec: Option<String>,
    pub enable_audio: bool,
    pub enable_video: bool,
}

impl Default for RtcConfig {
    fn default() -> Self {
        Self {
            ice_servers: vec!["stun:stun.l.google.com:19302".to_string()],
            prefer_codec: None,
            enable_audio: true,
            enable_video: true,
        }
    }
}