locked
I have a problem with my Metro style App Camera WinRT Api?

    Question

  • HI:

       I get a problem like this(Win8 Metro style app width C#):

               when i Init my Camera device,use CaptureMedia.Initialize,

               then i set it's Properties like CaptureMedia.SetCameraProperties(MediaStreamType.Photo,......)

               then start preview like  CaptureMedia.StartPreviewAsync().

       problem come:

              If i run this application on my pc with usb camera,there is no problem.

              but when i run this application on my win8 tablet,code will be stop on the "await capture.StartPreviewAsync()",application is alive,

    but every operation in vain,like die on the background thread.

               who can help me? thanks very much!

    Wednesday, June 6, 2012 9:05 AM

All replies

  •             it's not capture.startPreviewAsync,it's capture.CapturePhotoToStorageFileAsync(iamgeEncodingpropeties,file).

                usb camera work on pc is correctly,but tablet wrong.

    Wednesday, June 6, 2012 9:17 AM