mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-22 19:00:01 +08:00
sdp中添加msid属性
This commit is contained in:
parent
1403923138
commit
e84d16213c
@ -1098,6 +1098,16 @@ RtcSessionSdp::Ptr RtcSession::toRtcSessionSdp() const{
|
||||
}
|
||||
}
|
||||
|
||||
if (!m.rtp_ssrc.empty()) {
|
||||
auto msid = std::make_shared<SdpAttrMsid>();
|
||||
if (!m.rtp_ssrc.msid.empty()) {
|
||||
msid->parse(m.rtp_ssrc.msid);
|
||||
} else {
|
||||
msid->parse("mslabel label");
|
||||
}
|
||||
sdp_media.items.emplace_back(wrapSdpAttr(std::move(msid)));
|
||||
}
|
||||
|
||||
if (!m.rtp_ssrc.empty() && !m.rtx_ssrc.empty()) {
|
||||
auto group = std::make_shared<SdpAttrSSRCGroup>();
|
||||
group->type = "FID";
|
||||
|
Loading…
Reference in New Issue
Block a user