openvidu-browser: fix StreamManager.initializeVideoProperties mirror prop

pull/707/head
pabloFuente 2022-03-14 12:26:03 +01:00
parent fd1cc1a59d
commit a34f67639a
1 changed files with 3 additions and 3 deletions

View File

@ -415,10 +415,10 @@ export class StreamManager extends EventDispatcher {
} }
if (this.remote && this.isMirroredVideo(video)) { if (this.remote && this.isMirroredVideo(video)) {
// Remote video associated to a previously mirrored video element // Subscriber video associated to a previously mirrored video element
this.removeMirrorVideo(video); this.removeMirrorVideo(video);
} else if (!this.stream.displayMyRemote()) { } else if (!this.remote && !this.stream.displayMyRemote()) {
// Local video // Publisher video
video.muted = true; video.muted = true;
if (this.isMirroredVideo(video) && !this.stream.outboundStreamOpts.publisherProperties.mirror) { if (this.isMirroredVideo(video) && !this.stream.outboundStreamOpts.publisherProperties.mirror) {
// If the video was already rotated and now is set to not mirror // If the video was already rotated and now is set to not mirror