mirror of https://github.com/OpenVidu/openvidu.git
Ensure video element mirroring is removed
When reusing a video element between a local stream with mirroring, and a remote stream with no mirroring, the element's mirror transform was not getting removed.pull/689/head
parent
3c1876769b
commit
39c9cec7d1
|
@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue