Skip to content

Commit

Permalink
fix: solved the flip bug in screen share video (#13542)
Browse files Browse the repository at this point in the history
Fixes #13480 🐛 solved the flip bug in screen share video

* #13480 🐛 solved the flip bug in screen share video
  • Loading branch information
fatemehmarzoughi authored Jul 7, 2023
1 parent da5d103 commit e8766b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/UI/videolayout/VideoContainer.js
Original file line number Diff line number Diff line change
Expand Up @@ -508,7 +508,7 @@ export class VideoContainer extends LargeContainer {
*/
setLocalFlipX(val) {
this.localFlipX = val;
if (!this.video || !this.stream || !this.stream.isLocal()) {
if (!this.video || !this.stream || !this.stream.isLocal() || this.isScreenSharing()) {
return;
}
this.video.style.transform = this.localFlipX ? 'scaleX(-1)' : 'none';
Expand Down

0 comments on commit e8766b2

Please sign in to comment.