From 3786d5bef299edf335118e1a3ca9c7b8e89e427f Mon Sep 17 00:00:00 2001 From: csantosm <4a.santos@gmail.com> Date: Thu, 3 Mar 2022 10:36:17 +0100 Subject: [PATCH] openvidu-components: Fixed bug enlarging the screen video --- .../src/lib/services/participant/participant.service.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/openvidu-components-angular/projects/openvidu-angular/src/lib/services/participant/participant.service.ts b/openvidu-components-angular/projects/openvidu-angular/src/lib/services/participant/participant.service.ts index cf4f873b..38ebe98b 100644 --- a/openvidu-components-angular/projects/openvidu-angular/src/lib/services/participant/participant.service.ts +++ b/openvidu-components-angular/projects/openvidu-angular/src/lib/services/participant/participant.service.ts @@ -201,8 +201,10 @@ export class ParticipantService { participantAdded.setPublisher(streamModel.type, subscriber); } else { this.log.d('Participant has not publisher, adding it'); - this.resetRemoteStreamsToNormalSize(); - this.resetMyStreamsToNormalSize(); + if(streamModel.type === VideoType.SCREEN) { + this.resetRemoteStreamsToNormalSize(); + this.resetMyStreamsToNormalSize(); + } participantAdded.addConnection(streamModel); } } else {