mirror of
https://gitlab.com/comunic/comunicapiv3
synced 2025-03-23 06:00:45 +00:00
19 lines
371 B
Rust
19 lines
371 B
Rust
|
//! # User side calls configuration
|
||
|
//!
|
||
|
//! @author Pierre Hubert
|
||
|
|
||
|
use serde::Serialize;
|
||
|
|
||
|
use crate::data::config::RtcRelayConfig;
|
||
|
|
||
|
#[derive(Serialize)]
|
||
|
#[allow(non_snake_case)]
|
||
|
pub struct UserCallsConfig {
|
||
|
iceServers: Vec<String>,
|
||
|
}
|
||
|
|
||
|
impl UserCallsConfig {
|
||
|
pub fn new(conf: &RtcRelayConfig) -> Self {
|
||
|
Self { iceServers: conf.ice_servers.clone() }
|
||
|
}
|
||
|
}
|