How to preview webcam in C++/CX XAML app RRS feed

  • Question

  • MainPage




    mediaCapture =



    capture->Source = mediaCapture;



    The code doesn't work. please help.

    Thursday, September 25, 2014 11:39 AM

All replies

  • What is your XAML definition on that page (I assume capture is the name of the element you want the preview to display on)?

    What do you mean exactlly by "doesn't work". Is there an Exception (if yes, what does it say), is there simply nothing happening at all? Is there a problem with the preview image? What device are you testing this on and what Camera do you have available there (built-in Camera, attached via USB)?

    Thursday, September 25, 2014 1:18 PM