Refine(webrtc/sdp): 函数 WebRtcTransport::onCheckSdp() 拆分为WebRtcTransport::onCheckAnswer() 和 RtcSession::checkSdp()

This commit is contained in:
Johnny
2021-10-12 15:53:30 +08:00
parent c7633fb5bb
commit 0f4289a584
4 changed files with 18 additions and 24 deletions

View File

@@ -1381,6 +1381,16 @@ bool RtcSession::supportSimulcast() const {
}
return false;
}
void RtcSession::checkSdp() const {
for (auto &m : media) {
if (m.type != TrackApplication && !m.rtcp_mux) {
throw std::invalid_argument("只支持rtcp-mux模式");
}
}
if (group.mids.empty()) {
throw std::invalid_argument("只支持group BUNDLE模式");
}
}
string const SdpConst::kTWCCRtcpFb = "transport-cc";
string const SdpConst::kRembRtcpFb = "goog-remb";