From eedd437ca771a14b9873b3886efa7b813365ec7d Mon Sep 17 00:00:00 2001 From: Kegan Dougal Date: Thu, 16 Jul 2015 11:21:43 +0100 Subject: [PATCH] Minimal CSS bodge so the video actually dies when the call ends. --- src/controllers/molecules/voip/CallView.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/controllers/molecules/voip/CallView.js b/src/controllers/molecules/voip/CallView.js index 0a5e3e2f..16cd398d 100644 --- a/src/controllers/molecules/voip/CallView.js +++ b/src/controllers/molecules/voip/CallView.js @@ -50,9 +50,15 @@ module.exports = { } var call = CallHandler.getCall(payload.room_id); if (call) { + 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"; + this.getVideoView().getRemoteVideoElement().style.display = "none"; + } } };