Only display video elements in video calls.

This commit is contained in:
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) {
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;
if (call) {
call.call_state = status;

View file

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