Initial commit
This commit is contained in:
49
.gitignore
vendored
Normal file
49
.gitignore
vendored
Normal file
@@ -0,0 +1,49 @@
|
||||
*.swp
|
||||
*.*~
|
||||
project.lock.json
|
||||
.DS_Store
|
||||
*.pyc
|
||||
nupkg/
|
||||
|
||||
# Visual Studio Code
|
||||
.vscode/*
|
||||
!.vscode/settings.json
|
||||
|
||||
# Rider
|
||||
.idea/
|
||||
|
||||
# Visual Studio
|
||||
.vs/
|
||||
|
||||
# Fleet
|
||||
.fleet/
|
||||
|
||||
# Code Rush
|
||||
.cr/
|
||||
|
||||
# User-specific files
|
||||
*.suo
|
||||
*.user
|
||||
*.userosscache
|
||||
*.sln.docstates
|
||||
|
||||
# Build results
|
||||
[Dd]ebug/
|
||||
[Dd]ebugPublic/
|
||||
[Rr]elease/
|
||||
[Rr]eleases/
|
||||
x64/
|
||||
x86/
|
||||
build/
|
||||
bld/
|
||||
[Bb]in/
|
||||
[Oo]bj/
|
||||
[Oo]ut/
|
||||
msbuild.log
|
||||
msbuild.err
|
||||
msbuild.wrn
|
||||
|
||||
# Node.js build artifacts
|
||||
node_modules/
|
||||
package-lock.json
|
||||
package.json
|
||||
16
Flashcap-Demo.sln
Normal file
16
Flashcap-Demo.sln
Normal file
@@ -0,0 +1,16 @@
|
||||
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Flashcap-Demo", "Flashcap-Demo\Flashcap-Demo.csproj", "{191772D1-2FA8-484A-83FC-A721C03CC7B5}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
Release|Any CPU = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{191772D1-2FA8-484A-83FC-A721C03CC7B5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{191772D1-2FA8-484A-83FC-A721C03CC7B5}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{191772D1-2FA8-484A-83FC-A721C03CC7B5}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{191772D1-2FA8-484A-83FC-A721C03CC7B5}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
EndGlobal
|
||||
15
Flashcap-Demo/Flashcap-Demo.csproj
Normal file
15
Flashcap-Demo/Flashcap-Demo.csproj
Normal file
@@ -0,0 +1,15 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net10.0</TargetFramework>
|
||||
<RootNamespace>Flashcap_Demo</RootNamespace>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
<OutputType>Exe</OutputType>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="FlashCap" Version="1.11.0" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
14
Flashcap-Demo/Main.cs
Normal file
14
Flashcap-Demo/Main.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
|
||||
using FlashCap;
|
||||
|
||||
var device = new CaptureDevices();
|
||||
foreach (var descriptor in device.GetDescriptors())
|
||||
{
|
||||
Console.WriteLine($"Name: {descriptor.Name}, " +
|
||||
$"Description: {descriptor.Description}, " +
|
||||
$"DeviceType: {descriptor.DeviceType}, " +
|
||||
$"Identity: {descriptor.Identity}" +
|
||||
$"Characteristics:\n" +
|
||||
$"\t{string.Join("\n\t",descriptor.Characteristics.Where(x=>x.Height >=1080))}"
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user