Knowing screen orientation + Side RRS feed

  • Question

  • Hello All,

    I have created a camera app using the MediaCapture API and trying to get the preview to be display relative to how the user is holding the device. For example the app assumes that the user is holding the device in portrait mode and displays the feed as such but when the user rotates the device by 90 degrees left or right how could I tell if the user turned the device clock wise or counter clockwise to display the feed accordingly.

    I know that I can get the screen orientation as landscape or portrait but that does not tell me by how much should I rotate the feed.


    • Edited by samguddy Wednesday, May 28, 2014 4:31 PM
    Wednesday, May 28, 2014 3:45 PM


All replies