支持单独的datachannel通道 (#1894)

* 支持单独的datachannel 通道

* 当仅有datachannel时 ,忽略rtp和rtcp超时

* 单独开启datachannel时,通过dtls包维持心跳

Co-authored-by: xiongziliang <771730766@qq.com>
This commit is contained in:
Dw9
2022-08-20 10:28:19 +08:00
committed by GitHub
parent 39d2255771
commit b7ef766701
4 changed files with 24 additions and 1 deletions

View File

@@ -678,6 +678,7 @@ public:
const RtcMedia *getMedia(mediakit::TrackType type) const;
bool supportRtcpFb(const std::string &name, mediakit::TrackType type = mediakit::TrackType::TrackVideo) const;
bool supportSimulcast() const;
bool isOnlyDatachannel() const;
private:
RtcSessionSdp::Ptr toRtcSessionSdp() const;