From 3de69557c4c00fc930fc00efca8981454f4deefb Mon Sep 17 00:00:00 2001 From: Tim Kainz Date: Tue, 6 Jan 2026 22:54:21 +0100 Subject: [PATCH] Initial commit --- .gitignore | 49 ++++++++++++++++++++++++++++++ Flashcap-Demo.sln | 16 ++++++++++ Flashcap-Demo/Flashcap-Demo.csproj | 15 +++++++++ Flashcap-Demo/Main.cs | 14 +++++++++ 4 files changed, 94 insertions(+) create mode 100644 .gitignore create mode 100644 Flashcap-Demo.sln create mode 100644 Flashcap-Demo/Flashcap-Demo.csproj create mode 100644 Flashcap-Demo/Main.cs diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..5bbb800 --- /dev/null +++ b/.gitignore @@ -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 diff --git a/Flashcap-Demo.sln b/Flashcap-Demo.sln new file mode 100644 index 0000000..e9e6670 --- /dev/null +++ b/Flashcap-Demo.sln @@ -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 diff --git a/Flashcap-Demo/Flashcap-Demo.csproj b/Flashcap-Demo/Flashcap-Demo.csproj new file mode 100644 index 0000000..98e364e --- /dev/null +++ b/Flashcap-Demo/Flashcap-Demo.csproj @@ -0,0 +1,15 @@ + + + + net10.0 + Flashcap_Demo + enable + enable + Exe + + + + + + + diff --git a/Flashcap-Demo/Main.cs b/Flashcap-Demo/Main.cs new file mode 100644 index 0000000..04319ef --- /dev/null +++ b/Flashcap-Demo/Main.cs @@ -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))}" + ); +} \ No newline at end of file