提交 d4ae857c authored 作者: Iñaki Baz Castillo's avatar Iñaki Baz Castillo

Disable RTP MID extension until #230 is fixed

上级 bc2ab5aa
......@@ -275,18 +275,18 @@ const supportedRtpCapabilities =
preferredId : 4,
preferredEncrypt : false
},
{
kind : 'audio',
uri : 'urn:ietf:params:rtp-hdrext:sdes:mid',
preferredId : 5,
preferredEncrypt : false
},
{
kind : 'video',
uri : 'urn:ietf:params:rtp-hdrext:sdes:mid',
preferredId : 5,
preferredEncrypt : false
},
// {
// kind : 'audio',
// uri : 'urn:ietf:params:rtp-hdrext:sdes:mid',
// preferredId : 5,
// preferredEncrypt : false
// },
// {
// kind : 'video',
// uri : 'urn:ietf:params:rtp-hdrext:sdes:mid',
// preferredId : 5,
// preferredEncrypt : false
// },
{
kind : 'video',
uri : 'urn:ietf:params:rtp-hdrext:sdes:rtp-stream-id',
......
......@@ -265,25 +265,26 @@ namespace RTC
// Otherwise lookup into the muxId table.
{
const uint8_t* muxIdPtr;
size_t muxIdLen;
if (packet->ReadMid(&muxIdPtr, &muxIdLen))
{
auto* charMuxIdPtr = reinterpret_cast<const char*>(muxIdPtr);
std::string muxId(charMuxIdPtr, muxIdLen);
auto it = this->muxIdTable.find(muxId);
if (it != this->muxIdTable.end())
{
auto producer = it->second;
// Fill the ssrc table.
this->ssrcTable[packet->GetSsrc()] = producer;
return producer;
}
}
// TODO: https://github.com/versatica/mediasoup/issues/230
// const uint8_t* muxIdPtr;
// size_t muxIdLen;
// if (packet->ReadMid(&muxIdPtr, &muxIdLen))
// {
// auto* charMuxIdPtr = reinterpret_cast<const char*>(muxIdPtr);
// std::string muxId(charMuxIdPtr, muxIdLen);
// auto it = this->muxIdTable.find(muxId);
// if (it != this->muxIdTable.end())
// {
// auto producer = it->second;
// // Fill the ssrc table.
// this->ssrcTable[packet->GetSsrc()] = producer;
// return producer;
// }
// }
}
// Otherwise lookup into the RID table.
......
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论