From 919e1cf84f75b80bc9c4a006a0cdfe2523df357e Mon Sep 17 00:00:00 2001 From: Matthew Hodgson Date: Sun, 19 Jul 2015 00:36:23 +0100 Subject: [PATCH] unbreak voice calls --- src/controllers/molecules/voip/CallView.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/controllers/molecules/voip/CallView.js b/src/controllers/molecules/voip/CallView.js index a4c090a36f..e43046a553 100644 --- a/src/controllers/molecules/voip/CallView.js +++ b/src/controllers/molecules/voip/CallView.js @@ -53,11 +53,14 @@ module.exports = { showCall: function(roomId) { var call = CallHandler.getCall(roomId); + if (call) { + call.setLocalVideoElement(this.getVideoView().getLocalVideoElement()); + // N.B. the remote video element is used for playback for audio for voice calls + call.setRemoteVideoElement(this.getVideoView().getRemoteVideoElement()); + } if (call && call.type === "video" && call.state !== 'ended') { this.getVideoView().getLocalVideoElement().style.display = "initial"; this.getVideoView().getRemoteVideoElement().style.display = "initial"; - call.setLocalVideoElement(this.getVideoView().getLocalVideoElement()); - call.setRemoteVideoElement(this.getVideoView().getRemoteVideoElement()); } else { this.getVideoView().getLocalVideoElement().style.display = "none";