1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2026-01-03 23:22:30 +03:00

fix non-impacting typo

This commit is contained in:
Matthew Hodgson
2015-07-19 00:36:56 +01:00
parent bc216d7bca
commit 8bc89d433b

View File

@@ -312,7 +312,7 @@ MatrixCall.prototype._gotUserMediaForAnswer = function(stream) {
if (localVidEl && self.type == 'video') {
localVidEl.autoplay = true;
localVidEl.src = self.URL.createObjectURL(stream);
localVidEl.muted = self;
localVidEl.muted = true;
setTimeout(function() {
var vel = self.getLocalVideoElement();
if (vel.play) {
@@ -656,14 +656,18 @@ var sendCandidate = function(self, content) {
};
var terminate = function(self, hangupParty, hangupReason, shouldEmit) {
if (self.getRemoteVideoElement() && self.getRemoteVideoElement().pause) {
self.getRemoteVideoElement().pause();
if (self.getRemoteVideoElement()) {
if (self.getRemoteVideoElement().pause) {
self.getRemoteVideoElement().pause();
}
self.getRemoteVideoElement().src = "";
}
if (self.getLocalVideoElement() && self.getLocalVideoElement().pause) {
self.getLocalVideoElement().pause();
if (self.getLocalVideoElement()) {
if (self.getLocalVideoElement().pause) {
self.getLocalVideoElement().pause();
}
self.getLocalVideoElement().src = "";
}
self.getRemoteVideoElement().src = "";
self.getLocalVideoElement().src = "";
self.hangupParty = hangupParty;
self.hangupReason = hangupReason;
setState(self, 'ended');
@@ -914,7 +918,7 @@ module.exports.createNewMatrixCall = function(client, roomId) {
}
if (!webRtc.RtcIceCandidate || !webRtc.RtcSessionDescription ||
!webRtc.RtcPeerConnection || !webRtc.getUserMedia) {
return null; // Web RTC is not supported.
return null; // WebRTC is not supported.
}
var opts = {
webRtc: webRtc,