给openrtpserver接口添加enable_reuse参数 (#1372)

* 修改rtpopen逻辑

* 给openrtpserver接口添加enable_reuse端口
This commit is contained in:
wangcker
2022-01-14 21:53:01 +08:00
committed by GitHub
parent a3e628449e
commit e8b0993493
3 changed files with 13 additions and 6 deletions

View File

@@ -41,7 +41,7 @@ public:
* @param enable_tcp 是否启用tcp服务器
* @param local_ip 绑定的本地网卡ip
*/
void start(uint16_t local_port, const string &stream_id = "", 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",bool enable_reuse = true);
/**
* 获取绑定的本地端口