Skip to content

Commit eedd437

Browse files
committed
Minimal CSS bodge so the video actually dies when the call ends.
1 parent 7ffd97b commit eedd437

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

‎src/controllers/molecules/voip/CallView.js‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,15 @@ module.exports = {
5050
}
5151
var call = CallHandler.getCall(payload.room_id);
5252
if (call) {
53+
this.getVideoView().getLocalVideoElement().style.display = "initial";
54+
this.getVideoView().getRemoteVideoElement().style.display = "initial";
5355
call.setLocalVideoElement(this.getVideoView().getLocalVideoElement());
5456
call.setRemoteVideoElement(this.getVideoView().getRemoteVideoElement());
5557
}
58+
else {
59+
this.getVideoView().getLocalVideoElement().style.display = "none";
60+
this.getVideoView().getRemoteVideoElement().style.display = "none";
61+
}
5662
}
5763
};
5864

0 commit comments

Comments
 (0)