Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

Do not send SELECTED_ENDPOINT events for custom containers.

damencho9abc78ef24b1
diff --git a/modules/UI/videolayout/VideoLayout.js b/modules/UI/videolayout/VideoLayout.js
index bfa8449549..33a553a482 100644
--- a/modules/UI/videolayout/VideoLayout.js
+++ b/modules/UI/videolayout/VideoLayout.js
@@ -922,7 +922,8 @@ var VideoLayout = {
let currentId = largeVideo.id;
if (!isOnLarge || forceUpdate) {
- if (id !== currentId) {
+ let videoType = this.getRemoteVideoType(id);
+ if (id !== currentId && videoType === VIDEO_CONTAINER_TYPE) {
eventEmitter.emit(UIEvents.SELECTED_ENDPOINT, id);
}
if (currentId) {
@@ -931,7 +932,6 @@ var VideoLayout = {
let smallVideo = this.getSmallVideo(id);
- let videoType = this.getRemoteVideoType(id);
largeVideo.updateLargeVideo(
id,
smallVideo.videoStream,