From 546f77d1ca229ddbad0d4ae2d54b76154db74228 Mon Sep 17 00:00:00 2001 From: Maryam Kia Date: Mon, 6 Nov 2023 16:46:15 +0100 Subject: [PATCH] [IMP] mail: sharing both screen and camera tests MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This commit contains the tests related to the screen sharing at the same time with camera sharing on call closes odoo/odoo#141275 Signed-off-by: Alexandre Kühn (aku) --- .../call/common/call_participant_card.xml | 2 +- .../call/common/call_participant_video.js | 7 +- .../call/common/call_participant_video.xml | 3 +- .../static/tests/discuss/call/call_tests.js | 65 ++++++++++++++----- 4 files changed, 55 insertions(+), 22 deletions(-) diff --git a/addons/mail/static/src/discuss/call/common/call_participant_card.xml b/addons/mail/static/src/discuss/call/common/call_participant_card.xml index 4e9b170548e..53e19266810 100644 --- a/addons/mail/static/src/discuss/call/common/call_participant_card.xml +++ b/addons/mail/static/src/discuss/call/common/call_participant_card.xml @@ -19,7 +19,7 @@ t-ref="root" > - +
Avatar} */ export class CallParticipantVideo extends Component { - static props = ["session", "videoStream?"]; + static props = ["session", "type", "inset?"]; static template = "discuss.CallParticipantVideo"; setup() { @@ -27,10 +26,10 @@ export class CallParticipantVideo extends Component { if (!this.root.el) { return; } - if (!this.props.session || !this.props.videoStream) { + if (!this.props.session || !this.props.session.getStream(this.props.type)) { this.root.el.srcObject = undefined; } else { - this.root.el.srcObject = this.props.videoStream; + this.root.el.srcObject = this.props.session.getStream(this.props.type); } this.root.el.load(); } diff --git a/addons/mail/static/src/discuss/call/common/call_participant_video.xml b/addons/mail/static/src/discuss/call/common/call_participant_video.xml index 5461355f7cd..d781a1b21a9 100644 --- a/addons/mail/static/src/discuss/call/common/call_participant_video.xml +++ b/addons/mail/static/src/discuss/call/common/call_participant_video.xml @@ -2,7 +2,8 @@