In the latest sample 'Media capture using capture device sample' source code, it use 'EnclosureLocation' of DeviceInformation to rotate the preview automatically in orientation changed event. But when I run the app on a tablet, the member 'EnclosureLocation'
of DeviceInformation is always null for the camera device.
I run the MS default Camera app, the preview can be rotated correct and the preview is mirrored default for the front camera automatically.
Anyone can tell me how MS Camera to know the camera is front or rear?
Thanks.