MCPcopy Create free account
hub / github.com/619dev/minghe / MediaConfig

Class MediaConfig

src/config.rs:67–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65/// 媒体(RTP)中继配置
66#[derive(Debug, Clone, Deserialize)]
67pub 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
76impl AppConfig {
77 /// 从指定路径加载并解析 TOML 配置文件

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected