提交 00d7569d authored 作者: Nazar Mokrynskyi's avatar Nazar Mokrynskyi

Fix type of `bufferedAmount` value in JSON

上级 0ef0a689
......@@ -5,6 +5,7 @@
* Transport: Remove duplicate call to method (PR #931).
* RTCP: Adjust maximum compound packet size (PR #934).
* Fix `bufferedAmount` type to be a number again (PR #936).
### 3.10.12
......
......@@ -209,10 +209,10 @@ namespace RTC
// Trigger 'bufferedamountlow' now.
if (this->bufferedAmount <= this->bufferedAmountLowThreshold)
{
std::string data(R"({"bufferedAmount":")");
std::string data(R"({"bufferedAmount":)");
data.append(std::to_string(this->bufferedAmount));
data.append("\"}");
data.append("}");
}
// Force the trigger of 'bufferedamountlow' once there is less or same
// buffered data than the given threshold.
......@@ -350,10 +350,10 @@ namespace RTC
this->forceTriggerBufferedAmountLow = false;
// Notify the Node DataConsumer.
std::string data(R"({"bufferedAmount":")");
std::string data(R"({"bufferedAmount":)");
data.append(std::to_string(this->bufferedAmount));
data.append("\"}");
data.append("}");
Channel::ChannelNotifier::Emit(this->id, "bufferedamountlow", data);
}
......
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论