mirror of https://github.com/OpenVidu/openvidu.git
Merge pull request #689 from Flamenco/patch-3
Ensure video element mirroring is removedpull/707/head
commit
905b7fe281
|
@ -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;
|
video.muted = true;
|
||||||
if (video.style.transform === 'rotateY(180deg)' && !this.stream.outboundStreamOpts.publisherProperties.mirror) {
|
if (video.style.transform === 'rotateY(180deg)' && !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
|
||||||
|
@ -567,4 +572,4 @@ export class StreamManager extends EventDispatcher {
|
||||||
delete this.streamPlayingEventExceptionTimeout;
|
delete this.streamPlayingEventExceptionTimeout;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue