提交 7adc2a94 authored 作者: Iñaki Baz Castillo's avatar Iñaki Baz Castillo

RTCPeerConnection: add consumeIceRestart() method (fixes #79)

上级 15083b83
......@@ -440,6 +440,20 @@ class RTCPeerConnectionCommon extends EventEmitter
this._busy = false;
}
consumeIceRestart()
{
this._logger.debug('consumeIceRestart()');
if (!this._localDescription)
return Promise.reject(new InvalidStateError('no localDescription'));
// Create an answer.
let localDescription = this._createLocalDescription('answer');
// Resolve with it.
return Promise.resolve(localDescription);
}
_mayRenegotiate()
{
// If already scheduled, ignore.
......
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论