locked
Detect Windows Phone Camera from Windows 8 app

    Question

  • Hi, 

    I want to use my windows phone camera on a windows 8 app. 

    My wp is connected through usb to my laptop.

    var cameras = await DeviceInformation.FindAllAsync(DeviceClass.VideoCapture);

    returns just the webcam on my laptop. How can I make my app detect my camera on my windows phone?

    Wednesday, September 3, 2014 5:29 PM

Answers

  • I assume that the Video driver used by that Camera is not compatible with the newer Windows 8 driver model. Perhaps this post is of help to you in solving the issue: http://superuser.com/questions/499858/how-to-use-built-in-webcam-with-windows-8
    Wednesday, September 3, 2014 6:46 PM
  • Most likely it is running on a legacy driver. If your laptop came with Windows 8, then the internal webcam needs to have a compatible driver to pass certification. But an external one would not have this requirement. Try find a driver for windows 8, or switch to another camera that has windows 8 drivers (search http://www.microsoft.com/en-us/windows/compatibility/CompatCenter/ for community feedback on compatibility).


    Visual C++ MVP



    Wednesday, September 3, 2014 6:49 PM

All replies

  • You can't access the Camera from a connected Smartphone in that way on a PC as the phone is connected using the MTP protocol as a storage device. You would have to write a separate App on the phone that is sending the Camera frames to your PC using Bluetooth or Wifi.
    Wednesday, September 3, 2014 5:41 PM
  • Ok. I also installed a different webcam on my laptop and it still  sees just the laptop's webcam, but when I set DeviceClass.AudioCapture it sees the microphone from the just installed webcam. What's wrong?
    Wednesday, September 3, 2014 6:10 PM
  • I assume that the Video driver used by that Camera is not compatible with the newer Windows 8 driver model. Perhaps this post is of help to you in solving the issue: http://superuser.com/questions/499858/how-to-use-built-in-webcam-with-windows-8
    Wednesday, September 3, 2014 6:46 PM
  • Most likely it is running on a legacy driver. If your laptop came with Windows 8, then the internal webcam needs to have a compatible driver to pass certification. But an external one would not have this requirement. Try find a driver for windows 8, or switch to another camera that has windows 8 drivers (search http://www.microsoft.com/en-us/windows/compatibility/CompatCenter/ for community feedback on compatibility).


    Visual C++ MVP



    Wednesday, September 3, 2014 6:49 PM