Do not send SELECTED_ENDPOINT events for custom containers.

This commit is contained in:
damencho 2016-03-24 14:34:18 -05:00
parent 5112041e15
commit 9abc78ef24
1 changed files with 2 additions and 2 deletions

View File

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