mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 19:45:05 +01:00
only create datachannel on side that sends invite
This commit is contained in:
parent
d734a61447
commit
fd5b2aa7bb
@ -172,9 +172,6 @@ export class PeerCall implements IDisposable {
|
|||||||
for (const t of this.localMedia.tracks) {
|
for (const t of this.localMedia.tracks) {
|
||||||
this.peerConnection.addTrack(t);
|
this.peerConnection.addTrack(t);
|
||||||
}
|
}
|
||||||
if (this.localMedia.dataChannelOptions) {
|
|
||||||
this._dataChannel = this.peerConnection.createDataChannel(this.localMedia.dataChannelOptions);
|
|
||||||
}
|
|
||||||
let myAnswer: RTCSessionDescriptionInit;
|
let myAnswer: RTCSessionDescriptionInit;
|
||||||
try {
|
try {
|
||||||
myAnswer = await this.peerConnection.createAnswer();
|
myAnswer = await this.peerConnection.createAnswer();
|
||||||
|
Loading…
Reference in New Issue
Block a user