Only display video elements in video calls.

pull/1/head
Kegan Dougal 2015-07-16 11:30:34 +01:00
parent eedd437ca7
commit 50f9d34211
2 changed files with 4 additions and 2 deletions

View File

@ -102,7 +102,9 @@ function _setCallListeners(call) {
} }
function _setCallState(call, roomId, status) { function _setCallState(call, roomId, status) {
console.log("_setState >>> %s >>> %s >> %s", call, roomId, status); console.log(
"Call state in %s changed to %s (%s)", roomId, status, (call ? call.state : "-")
);
calls[roomId] = call; calls[roomId] = call;
if (call) { if (call) {
call.call_state = status; call.call_state = status;

View File

@ -49,7 +49,7 @@ module.exports = {
return; return;
} }
var call = CallHandler.getCall(payload.room_id); var call = CallHandler.getCall(payload.room_id);
if (call) { if (call && call.type === "video") {
this.getVideoView().getLocalVideoElement().style.display = "initial"; this.getVideoView().getLocalVideoElement().style.display = "initial";
this.getVideoView().getRemoteVideoElement().style.display = "initial"; this.getVideoView().getRemoteVideoElement().style.display = "initial";
call.setLocalVideoElement(this.getVideoView().getLocalVideoElement()); call.setLocalVideoElement(this.getVideoView().getLocalVideoElement());