| 65 | /// 媒体(RTP)中继配置 |
| 66 | #[derive(Debug, Clone, Deserialize)] |
| 67 | pub struct MediaConfig { |
| 68 | /// RTP 端口范围起始 |
| 69 | pub rtp_port_start: u16, |
| 70 | /// RTP 端口范围结束 |
| 71 | pub rtp_port_end: u16, |
| 72 | /// 服务器媒体地址(用于 SDP,留空则自动检测本机 IP) |
| 73 | pub media_addr: String, |
| 74 | } |
| 75 | |
| 76 | impl AppConfig { |
| 77 | /// 从指定路径加载并解析 TOML 配置文件 |
nothing calls this directly
no outgoing calls
no test coverage detected