Unverified 提交 6bb5fcd0 authored 作者: Nazar Mokrynskyi's avatar Nazar Mokrynskyi 提交者: GitHub

Merge pull request #936 from nazar-pc/fix-buffered-amount-low-json-type

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