It's often useful to flip the local user's view of themselves to get rid of the uncanny "my hand moves left when I move it right" thing. Is this something that this library supports? I couldn't find any mention of it in the docs.
We do not have an API for this; however, you can do this with CSS. It would be useful to call this out somewhere.
const video = localVideo.attach();
video.style.transform = 'scale(-1, 1)';
Thanks, that was enough to hack a solution together!
This solution also worked for me; keep in mind you need to switch it back if doing screen share.
Naming the video tracks (e..g webcam vs screenshare)
can we flip or add mirror function in node js if yes than how?
Most helpful comment
We do not have an API for this; however, you can do this with CSS. It would be useful to call this out somewhere.