Skip to content

Commit

Permalink
Add remb value to subscriber stats (#1470)
Browse files Browse the repository at this point in the history
  • Loading branch information
jcague authored Oct 3, 2019
1 parent 6136772 commit 8612391
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion erizo/src/erizo/rtp/StatsHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ void StatsCalculator::processRtcpPacket(std::shared_ptr<DataPacket> packet) {
RtcpHeader *chead = reinterpret_cast<RtcpHeader*>(movingBuf);
if (chead->isFeedback()) {
ssrc = chead->getSourceSSRC();
if (!stream_->isSinkSSRC(ssrc)) {
if (stream_->isPublisher()) {
is_feedback_on_publisher = true;
}
} else {
Expand Down Expand Up @@ -149,6 +149,7 @@ void StatsCalculator::processRtcpPacket(std::shared_ptr<DataPacket> packet) {
if (is_feedback_on_publisher) {
break;
}
ssrc = chead->getREMBFeedSSRC(0);
ELOG_DEBUG("REMB Packet, SSRC %u, sourceSSRC %u", chead->getSSRC(), chead->getSourceSSRC());
char *uniqueId = reinterpret_cast<char*>(&chead->report.rembPacket.uniqueid);
if (!strncmp(uniqueId, "REMB", 4)) {
Expand Down

0 comments on commit 8612391

Please sign in to comment.