mirror of
https://github.com/SchildiChat/element-web.git
synced 2024-10-01 01:26:12 -04:00
unbreak voice calls
This commit is contained in:
parent
981bcbe74f
commit
919e1cf84f
@ -53,11 +53,14 @@ module.exports = {
|
|||||||
|
|
||||||
showCall: function(roomId) {
|
showCall: function(roomId) {
|
||||||
var call = CallHandler.getCall(roomId);
|
var call = CallHandler.getCall(roomId);
|
||||||
|
if (call) {
|
||||||
|
call.setLocalVideoElement(this.getVideoView().getLocalVideoElement());
|
||||||
|
// N.B. the remote video element is used for playback for audio for voice calls
|
||||||
|
call.setRemoteVideoElement(this.getVideoView().getRemoteVideoElement());
|
||||||
|
}
|
||||||
if (call && call.type === "video" && call.state !== 'ended') {
|
if (call && call.type === "video" && call.state !== 'ended') {
|
||||||
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.setRemoteVideoElement(this.getVideoView().getRemoteVideoElement());
|
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
this.getVideoView().getLocalVideoElement().style.display = "none";
|
this.getVideoView().getLocalVideoElement().style.display = "none";
|
||||||
|
Loading…
Reference in New Issue
Block a user