轮流发送rtcp与GET_PARAMETER保活:#642

This commit is contained in:
xiongziliang
2021-01-02 22:32:13 +08:00
parent 9447ef70ca
commit 4b22e189d5
2 changed files with 25 additions and 18 deletions

View File

@@ -109,6 +109,11 @@ private:
void createUdpSockIfNecessary(int track_idx);
private:
//是否为性能测试模式
bool _benchmark_mode = false;
//轮流发送rtcp与GET_PARAMETER保活
bool _send_rtcp = true;
string _play_url;
vector<SdpTrack::Ptr> _sdp_track;
function<void(const Parser&)> _on_response;
@@ -143,9 +148,6 @@ private:
//rtcp发送时间,trackid idx 为数组下标
Ticker _rtcp_send_ticker[2];
//是否为性能测试模式
bool _benchmark_mode = false;
//服务器支持的命令
set<string> _supported_cmd;
};