I have developed the Camera application by using the PhotoCaptureDevice in the Windows Phone 8. I am able to run this application in the Nokia 820. But i don't have 920 device to test this app. But one of my user says that , this app does not run in Nokia 920 device. The VideoBrush that is supposed to show the camera viewfinder is blank. Can you please any one help me on this ?. If possible can you please test this in 920 device.
Exact code snippet that i use in the InitializeCamera
private static async Task InitializeCamera()
{
PhotoCaptureDevice d = null;
try
{
Windows.Foundation.Size initialResolution = new Windows.Foundation.Size(640, 480);
Windows.Foundation.Size previewResolution = new Windows.Foundation.Size(640, 480);
Windows.Foundation.Size captureResolution = new Windows.Foundation.Size(640, 480);
if (PhotoCaptureDevice.AvailableSensorLocations.Contains(CameraSensorLocation.Back))
{
d = await PhotoCaptureDevice.OpenAsync(CameraSensorLocation.Back, initialResolution);
await d.SetPreviewResolutionAsync(previewResolution);
await d.SetCaptureResolutionAsync(captureResolution);
d.SetProperty(KnownCameraGeneralProperties.EncodeWithOrientation,
d.SensorLocation == CameraSensorLocation.Back ?
d.SensorRotationInDegrees : -d.SensorRotationInDegrees);
_device = d;
}
}
catch (Exception e) { Debug.WriteLine(e.Message); }
}