mirror of https://github.com/vector-im/riot-web
Only display video elements in video calls.
parent
eedd437ca7
commit
50f9d34211
|
@ -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;
|
||||
|
|
|
@ -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());
|
||||
|
|
Loading…
Reference in New Issue