QSoft.MediaCapture
1.0.0.4
.NET 6.0
This package targets .NET 6.0. The package is compatible with this framework or higher.
.NET Framework 4.6
This package targets .NET Framework 4.6. The package is compatible with this framework or higher.
dotnet add package QSoft.MediaCapture --version 1.0.0.4
NuGet\Install-Package QSoft.MediaCapture -Version 1.0.0.4
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="QSoft.MediaCapture" Version="1.0.0.4" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add QSoft.MediaCapture --version 1.0.0.4
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: QSoft.MediaCapture, 1.0.0.4"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install QSoft.MediaCapture as a Cake Addin #addin nuget:?package=QSoft.MediaCapture&version=1.0.0.4 // Install QSoft.MediaCapture as a Cake Tool #tool nuget:?package=QSoft.MediaCapture&version=1.0.0.4
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Important hint
if submodule Direct or DirectCore show new version, please don't update
Quick start
Search all video capture
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
Init and start preview
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);
}
try below code when use WPF
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(x => this.image.Source = x);
}
open multi camera same time in WPF
var aa = QSoft.MediaCapture.WebCam_MF.GetAllWebCams()
.Select(async (camera, i) =>
{
await Task.Run(async () =>
{
await camera.InitCaptureEngine();
//await camera.SetPreviewSize(x => x.ElementAt(1));
await camera.StartPreview(x =>
{
this.Dispatcher.Invoke(() =>
{
this.image.Source = x;
});
});
});
}).ToArray();
await Task.WhenAll(aa);
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0-windows7.0 is compatible. net7.0-windows was computed. net8.0-windows was computed. net8.0-windows7.0 is compatible. |
.NET Framework | net46 is compatible. net461 was computed. net462 is compatible. net463 was computed. net47 was computed. net471 was computed. net472 is compatible. net48 was computed. net481 was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
.NETFramework 4.6
- DirectN (>= 1.16.1)
- System.ValueTuple (>= 4.5.0)
-
.NETFramework 4.6.2
- DirectN (>= 1.16.1)
- System.ValueTuple (>= 4.5.0)
-
.NETFramework 4.7.2
- DirectN (>= 1.16.1)
-
net6.0-windows7.0
- DirectNCore (>= 1.16.1)
-
net8.0-windows7.0
- DirectNCore (>= 1.16.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
1. Open dispatch priority setting at StartPreview of WPF
2. sync DirectN, DirectNCore