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

@ -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());