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