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 @@