From ecd1f090951da443e03b70a1f8b215fbe9ff4adb Mon Sep 17 00:00:00 2001 From: Kegan Dougal Date: Thu, 16 Jul 2015 10:26:41 +0100 Subject: [PATCH] Glue in video elements. --- src/CallHandler.js | 2 -- src/controllers/molecules/voip/CallView.js | 8 +++++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/CallHandler.js b/src/CallHandler.js index 5fefa7cf10..d6367a6bf2 100644 --- a/src/CallHandler.js +++ b/src/CallHandler.js @@ -50,8 +50,6 @@ limitations under the License. * * { * action: 'answer' - * remote_element: DOMVideoElement, // only if type: video - * local_element: DOMVideoElement, // only if type: video * room_id: * } */ diff --git a/src/controllers/molecules/voip/CallView.js b/src/controllers/molecules/voip/CallView.js index 9546f885ff..0a5e3e2f66 100644 --- a/src/controllers/molecules/voip/CallView.js +++ b/src/controllers/molecules/voip/CallView.js @@ -48,9 +48,11 @@ module.exports = { if (payload.action !== 'call_state') { return; } - this.setState({ - call: CallHandler.getCall(payload.room_id) - }); + var call = CallHandler.getCall(payload.room_id); + if (call) { + call.setLocalVideoElement(this.getVideoView().getLocalVideoElement()); + call.setRemoteVideoElement(this.getVideoView().getRemoteVideoElement()); + } } };