Merge pull request #689 from Flamenco/patch-3

Ensure video element mirroring is removed
pull/707/head
Pablo Fuente Pérez 2022-03-10 16:29:27 +01:00 committed by GitHub
commit 905b7fe281
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 2 deletions

View File

@ -414,7 +414,12 @@ export class StreamManager extends EventDispatcher {
}
}
if (!this.remote && !this.stream.displayMyRemote()) {
if (this.remote) {
// Do not mirror remote video.
// Remove the mirror if this video was currently associated with a local mirrored video.
this.removeMirrorVideo(video);
}
else if (!this.stream.displayMyRemote()) {
video.muted = true;
if (video.style.transform === 'rotateY(180deg)' && !this.stream.outboundStreamOpts.publisherProperties.mirror) {
// If the video was already rotated and now is set to not mirror
@ -567,4 +572,4 @@ export class StreamManager extends EventDispatcher {
delete this.streamPlayingEventExceptionTimeout;
}
}
}