msHorizontalMirror property

Gets or sets whether a video element is flipped horizontally in the display.

This property is read/write.

Internet Explorer 10



   <script type="text/javascript">
       var myVideo = document.getElementById("videoTag1");
       myVideo.msHorizontalMirror = true;;

Property values

Type: boolean

When true, the video playback is flipped horizontally.


msHorizontalMirror can be useful when you view a webcam preview, because it makes the image move left or right with you, as in a mirror. Otherwise, the image on a webcam moves in the opposite direction from your movement.

See also

How to mirror video