if submodule Direct or DirectCore show new version, please don't update
foreach(var oo in QSoft.MediaCapture.WebCam_MF.GetAllWebCams())
{
System.Diagnostics.Trace.WriteLine(oo.FriendName);
System.Diagnostics.Trace.WriteLine(oo.SymbolLinkName);
}
and filter FriendName, SymbolLinkName get it
var camera = QSoft.MediaCapture.WebCam_MF.GetAllWebCams()
.Find(x => x.FriendName == "USB2.0 HD UVC WebCam");
if(camera != null)
{
await camera.InitCaptureEngine();
await camera.SetPreviewSize(x => x.FirstOrDefault(y=>y.Width>=640));
await camera.StartPreview(host.Child.Handle);
}
var camera = QSoft.MediaCapture.WebCam_MF.GetAllWebCams()
.Find(x => x.FriendName == "USB2.0 HD UVC WebCam");
if(camera != null)
{
await camera.InitCaptureEngine();
await camera.SetPreviewSize(x => x.FirstOrDefault(y=>y.Width>=640));
await camera.StartPreview(bmp=>this.image.Source = bmp);
}
- jpg
- png
- bmp
- tif,tiff
var camera = QSoft.MediaCapture.WebCam_MF.GetAllWebCams()
.Find(x => x.FriendName == "USB2.0 HD UVC WebCam");
if(camera != null)
{
await camera.TakePhtot("123.jpg");
}
- mp4
- video: h264
- audio: aac
- wmv
- video: h264
- audio: aac
var camera = QSoft.MediaCapture.WebCam_MF.GetAllWebCams()
.Find(x => x.FriendName == "USB2.0 HD UVC WebCam");
if(camera != null)
{
await camera.StartRecord("123.mp4");
await Task.Delay(5000);
await camera.StopRecord();
}