1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-11-25 05:23:13 +03:00

Fix non-screensharing calls

This commit is contained in:
David Baker
2017-01-16 12:28:52 +00:00
parent dfcbdeb002
commit 9a593f147f

View File

@@ -516,8 +516,10 @@ MatrixCall.prototype._gotUserMediaForInvite = function(stream) {
}, 0);
}
this.screenSharingStream.addTrack(stream.getAudioTracks()[0]);
stream = this.screenSharingStream;
if (this.screenSharingStream) {
this.screenSharingStream.addTrack(stream.getAudioTracks()[0]);
stream = this.screenSharingStream;
}
this.localAVStream = stream;
// why do we enable audio (and only audio) tracks here? -- matthew