Mirror effect on participant local media(CAMERA)

sandeep

New Member
Hi,

Participant local video should be show on mirror effect is there any option from flashphoner side to active mirror effect?
 

Max

Administrator
Staff member
Hello,

For video element, mirroring can be done with CSS:
Code:
localVideo.style.transform = 'scaleX(-1)';
For streaming mirrored video, Canvas can be used, with scaling applied to its context:
Code:
var canvasContext = canvas.getContext("2d");
canvasContext.translate(canvas.width, 0);
canvasContext.scale(-1, 1);
 
Top