openvidu-components: Fixed bug enlarging the screen video

pull/707/head
csantosm 2022-03-03 10:36:17 +01:00
parent 5a41202935
commit 3786d5bef2
1 changed files with 4 additions and 2 deletions

View File

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