openvidu-components: Fixed bug enlarging the screen video

This commit is contained in:
csantosm 2022-03-03 10:36:17 +01:00
parent 5a41202935
commit 3786d5bef2

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 {