forked from mystiq/hydrogen-web
only create datachannel on side that sends invite
This commit is contained in:
parent
d734a61447
commit
fd5b2aa7bb
1 changed files with 0 additions and 3 deletions
|
@ -172,9 +172,6 @@ export class PeerCall implements IDisposable {
|
|||
for (const t of this.localMedia.tracks) {
|
||||
this.peerConnection.addTrack(t);
|
||||
}
|
||||
if (this.localMedia.dataChannelOptions) {
|
||||
this._dataChannel = this.peerConnection.createDataChannel(this.localMedia.dataChannelOptions);
|
||||
}
|
||||
let myAnswer: RTCSessionDescriptionInit;
|
||||
try {
|
||||
myAnswer = await this.peerConnection.createAnswer();
|
||||
|
|
Loading…
Reference in a new issue