From 03de63175e7526f6336bdcc75dcc318d0952cdb1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Calvi=C3=B1o=20S=C3=A1nchez?= Date: Tue, 3 Mar 2020 10:28:29 +0100 Subject: [PATCH 1/2] Move audio element from view to model MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit If a Video view is removed its audio element no longer plays the audio. This can happen, for example, when closing the sidebar in the Files app, which removes the call view and with it its Video views. But in that case, even if there is no call view, the call is still active. To ensure that the audio for another participant is played even if there is no view for it the audio element must be part of the model instead. Note that when closing the sidebar the audio was still heard, but that is caused by a duplicated audio element created in the SimpleWebRTC code (which will be fixed in a following commit). Signed-off-by: Daniel Calviño Sánchez --- src/components/CallView/Video.vue | 6 +++--- src/utils/webrtc/models/CallParticipantModel.js | 8 ++++++++ 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/src/components/CallView/Video.vue b/src/components/CallView/Video.vue index 174332660..36868dff5 100644 --- a/src/components/CallView/Video.vue +++ b/src/components/CallView/Video.vue @@ -23,7 +23,6 @@ :id="(placeholderForPromoted ? 'placeholder-' : '') + 'container_' + model.attributes.peerId + '_video_incoming'" class="videoContainer" :class="containerClass"> -