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

Fix RtcpFeedback (set parameter to null if no value)

# Conflicts:
#	lib/supportedRtpCapabilities.js
上级 676fd580
......@@ -42,8 +42,11 @@ namespace RTC
// Add `type`.
json[k_type] = this->type;
// Add `parameter`.
json[k_parameter] = this->parameter;
// Add `parameter` (ensure it's null if no value).
if (this->parameter.length() > 0)
json[k_parameter] = this->parameter;
else
json[k_parameter] = Json::nullValue;
return json;
}
......
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论