我的RTCPeerConnection实例上有以下内容:
rtcConnection.sdpExchangeComplete = function () {
const isComplete = this.signalingState == "stable" && this.localDescription != null && this.remoteDescription != null && this.remoteDescription.sdp.length > 0;
return isComplete;
};
我还使用它来为连接添加一个流(通过adapter
- 我知道将来会使用addTrack):
connection.addStream(stream);
我的问题是 - 我们是否应该在调用true
之前等待sdpExchangeComplete()为addStream
,还是可以在交换完成之前添加流/轨道?