D
dalsee
Guest
Hello everyone,
1. Background
I am trying this example Basic webcam app - Code Samples to capture a still image from my USB Webcam. But I realized I have to initialize my USB, not the built-in one used in the example. This example used mediaCapture.InitializeAsync() to initialize default webcam(built-in one), but I think I have to use mediaCapture.InitializeAsync(mediaCaptureInitializationSetting). But to do this, I need to specify my USB Webcam configurations inside the mediaCaptureInitializationSetting class.
2. What I did
// List all the video capture devices
DeviceInformationCollection devices = await DeviceInformation.FindAllAsync(DeviceClass.VideoCapture);
// Loop the device list and print the device ID
foreach (var device in devices)
{
// How to filter my USB Webcam here?
}
3. Question
How can I filter my USB device aside from the built-in webcam? It is using USB so there's gotta be a way to distinguish it from the built-in one. Any suggestions?
Continue reading...
1. Background
I am trying this example Basic webcam app - Code Samples to capture a still image from my USB Webcam. But I realized I have to initialize my USB, not the built-in one used in the example. This example used mediaCapture.InitializeAsync() to initialize default webcam(built-in one), but I think I have to use mediaCapture.InitializeAsync(mediaCaptureInitializationSetting). But to do this, I need to specify my USB Webcam configurations inside the mediaCaptureInitializationSetting class.
2. What I did
// List all the video capture devices
DeviceInformationCollection devices = await DeviceInformation.FindAllAsync(DeviceClass.VideoCapture);
// Loop the device list and print the device ID
foreach (var device in devices)
{
// How to filter my USB Webcam here?
}
3. Question
How can I filter my USB device aside from the built-in webcam? It is using USB so there's gotta be a way to distinguish it from the built-in one. Any suggestions?
Continue reading...