支持动态创建GB28181收流端口并可指定stream_id:#338

This commit is contained in:
xiongziliang
2020-07-07 10:01:12 +08:00
parent 30260e5414
commit 477f99b756
10 changed files with 89 additions and 73 deletions

View File

@@ -36,10 +36,11 @@ public:
/**
* 开启服务器,可能抛异常
* @param local_port 本地端口0时为随机端口
* @param stream_id 流id置空则使用ssrc
* @param enable_tcp 是否启用tcp服务器
* @param local_ip 绑定的本地网卡ip
*/
void start(uint16_t local_port, bool enable_tcp = true, const char *local_ip = "0.0.0.0");
void start(uint16_t local_port, const string &stream_id = "", bool enable_tcp = true, const char *local_ip = "0.0.0.0");
/**
* 获取绑定的本地端口