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

Enable MID RTP extension again

上级 4455a95e
...@@ -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,26 +265,25 @@ namespace RTC ...@@ -265,26 +265,25 @@ namespace RTC
// Otherwise lookup into the muxId table. // Otherwise lookup into the muxId table.
{ {
// TODO: https://github.com/versatica/mediasoup/issues/230 const uint8_t* muxIdPtr;
// const uint8_t* muxIdPtr; size_t muxIdLen;
// size_t muxIdLen;
if (packet->ReadMid(&muxIdPtr, &muxIdLen))
// if (packet->ReadMid(&muxIdPtr, &muxIdLen)) {
// { auto* charMuxIdPtr = reinterpret_cast<const char*>(muxIdPtr);
// auto* charMuxIdPtr = reinterpret_cast<const char*>(muxIdPtr); std::string muxId(charMuxIdPtr, muxIdLen);
// std::string muxId(charMuxIdPtr, muxIdLen);
auto it = this->muxIdTable.find(muxId);
// auto it = this->muxIdTable.find(muxId); if (it != this->muxIdTable.end())
// if (it != this->muxIdTable.end()) {
// { auto producer = it->second;
// auto producer = it->second;
// Fill the ssrc table.
// // Fill the ssrc table. this->ssrcTable[packet->GetSsrc()] = producer;
// this->ssrcTable[packet->GetSsrc()] = producer;
return producer;
// return producer; }
// } }
// }
} }
// Otherwise lookup into the RID table. // Otherwise lookup into the RID table.
......
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论