rtp服务器单端口模式收到相同ssrc推流时延时关闭RtpSession对象(防止频繁创建销毁对象)

This commit is contained in:
xiongziliang
2023-02-28 22:43:57 +08:00
parent c2e1083493
commit 539d6299f0
4 changed files with 30 additions and 7 deletions

View File

@@ -44,6 +44,13 @@ public:
RtpSelector() = default;
~RtpSelector() = default;
class ProcessExisted : public std::runtime_error {
public:
template<typename ...T>
ProcessExisted(T && ...args) : std::runtime_error(std::forward<T>(args)...) {}
~ProcessExisted() override = default;
};
static bool getSSRC(const char *data,size_t data_len, uint32_t &ssrc);
static RtpSelector &Instance();