how to let the carema preview window like a mirror? RRS feed

  • Question

  • Hi,

    I want to develop a camera app.

    I found that in the camera preview window, if I move hand to left , in the preview window, it moves to right. I want to make the preview window looks like a mirror, as I move to left, the preview window move to left.

    Hope I descripe my idea clearly, does anyone know how to do this? Thanks.

    Tuesday, February 14, 2012 6:00 AM


All replies

  • Hi OW,

    Here is how you can do this:



    Jeff Sanders (MSFT)

    Tuesday, February 14, 2012 1:09 PM
  • Hi Jeff, thanks your reply, this works for me.

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

    However, when I test my code in one Samsung pad(got from w8 build meeting), it shows different behavior, this machine shows correct behavior even not set "myVideo.msHorizontalMirror = true;",

    is there a way to make it always like a mirror whatever the device is?

    Wednesday, February 15, 2012 2:15 AM
  • This is a problem with the WebCam.  It appears it is mirroring by default.  I did not see a way to change this in any of the settings.

    Jeff Sanders (MSFT)

    Wednesday, February 15, 2012 9:03 PM