0

How to change the default camera app in Windows 10 desktop ? The option is available from Settings in Phones but not from Desktops

Neena
  • 123
  • 1
  • 1
  • 12

1 Answers1

0

If you want to make 'advanced' photo capture, then you can use MediaCapture class. Everything about this you will find at MSDN. There are also quite nice samples at GitHub.

It also seems that my old post for WinRT is still quite relevant. You will find there that I'm using GetCameraID:

private static async Task<DeviceInformation> GetCameraID(Windows.Devices.Enumeration.Panel desired)
{
    DeviceInformation deviceID = (await DeviceInformation.FindAllAsync(DeviceClass.VideoCapture))
        .FirstOrDefault(x => x.EnclosureLocation != null && x.EnclosureLocation.Panel == desired);

    if (deviceID != null) return deviceID;
    else throw new Exception(string.Format("Camera of type {0} doesn't exist.", desired));
}

to choose a device to be used to capture the photo. In your app you can enumerate devices and choose the one that suits you.

Community
  • 1
  • 1
Romasz
  • 29,662
  • 13
  • 79
  • 154