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

PipeConsumer: complete FillJson() method.

上级 3f556c14
......@@ -43,6 +43,20 @@ namespace RTC
// Call the parent method.
RTC::Consumer::FillJson(jsonObject);
// Add rtpStreams.
jsonObject["rtpStreams"] = json::array();
auto jsonRtpStreamsIt = jsonObject.find("rtpStreams");
for (auto& kv : this->mapMappedSsrcRtpStream)
{
jsonRtpStreamsIt->emplace_back(json::value_t::object);
auto& jsonEntry = (*jsonRtpStreamsIt)[jsonRtpStreamsIt->size() - 1];
auto* rtpStream = kv.second;
rtpStream->FillJson(jsonEntry);
}
}
void PipeConsumer::FillJsonStats(json& jsonArray) const
......
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论