提交 65929f6e authored 作者: Iñaki Baz Castillo's avatar Iñaki Baz Castillo

Consumer: allow setPreferredProfile('default'). Why not?

上级 c2a51be3
......@@ -4,7 +4,7 @@ const Logger = require('./Logger');
const EnhancedEventEmitter = require('./EnhancedEventEmitter');
const errors = require('./errors');
const PROFILES = new Set([ 'low', 'medium', 'high' ]);
const PROFILES = new Set([ 'default', 'low', 'medium', 'high' ]);
const logger = new Logger('Consumer');
......
......@@ -1200,7 +1200,7 @@ namespace RTC
auto profile = it->second;
if (profile == RTC::RtpEncodingParameters::Profile::NONE || profile == RTC::RtpEncodingParameters::Profile::DEFAULT)
if (profile == RTC::RtpEncodingParameters::Profile::NONE)
{
request->Reject("invalid profile");
......
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论