openRtpServer接口增加单视频参数,加快单视频流注册速度 (#3342)

only_audio -> only_track
This commit is contained in:
waken
2024-03-05 17:06:31 +08:00
committed by GitHub
parent ffdc13bfb9
commit 79b2aa6adc
10 changed files with 47 additions and 34 deletions

View File

@@ -233,7 +233,7 @@ void installWebApi();
void unInstallWebApi();
#if defined(ENABLE_RTPPROXY)
uint16_t openRtpServer(uint16_t local_port, const std::string &stream_id, int tcp_mode, const std::string &local_ip, bool re_use_port, uint32_t ssrc, bool only_audio, bool multiplex=false);
uint16_t openRtpServer(uint16_t local_port, const std::string &stream_id, int tcp_mode, const std::string &local_ip, bool re_use_port, uint32_t ssrc, int only_track, bool multiplex=false);
void connectRtpServer(const std::string &stream_id, const std::string &dst_url, uint16_t dst_port, const std::function<void(const toolkit::SockException &ex)> &cb);
bool closeRtpServer(const std::string &stream_id);
#endif