fd6e02b687
Bundle exception (2026-08-27): this lands prior-session work plus today's transparency fix as one commit per creator instruction. WebView2Manager (new): off-screen WebView2 control parked at -5000/-5000 in the window's visual tree, captures via CapturePreviewAsync every 100 ms into a BGRA8 VideoFrame. Source Width/Height sync to the control via PropertyChanged. JS transparent-background injection runs on every NavigationStarting/NavigationCompleted so the page's own CSS does not paint white over the capture. Transparency fix: DefaultBackgroundColor = System.Drawing.Color.Transparent set on the WPF control before EnsureCoreWebView2Async. The WPF SDK doc says the value is forwarded to the controller on init; the IDL (ICoreWebView2- Controller2) confirms alpha=0 makes the capture alpha-preserving. The prior-session 'CoreWebView2.BackgroundColor' path was the wrong property name and has been replaced. LayoutStore: WebUri column added (idempotent ALTER TABLE) and round-tripped on save/load (schema v11). MainViewModel: WebView2Manager constructed on Loaded; loaded web sources re-registered; Source.WebUri PropertyChanged forwards to manager. MainWindow: off-screen host Canvas added to visual tree. Tests: 3 scale-sync + WebView2_DefaultBackgroundColor_Is_Transparent + LayoutStorePersistenceTests.WebSource_WebUri_Persists. 234/236 pass (2 pre-existing failures unchanged). Scale bug (DPI/physical-pixel mismatch) still open.
54 lines
2.0 KiB
XML
54 lines
2.0 KiB
XML
<Project Sdk="Microsoft.NET.Sdk">
|
|
|
|
<PropertyGroup>
|
|
<OutputType>WinExe</OutputType>
|
|
<TargetFramework>net8.0-windows10.0.19041.0</TargetFramework>
|
|
<Nullable>enable</Nullable>
|
|
<ImplicitUsings>enable</ImplicitUsings>
|
|
<UseWPF>true</UseWPF>
|
|
<EnableWindowsTargeting>true</EnableWindowsTargeting>
|
|
<ApplicationIcon>Assets\llamacasty-icon.ico</ApplicationIcon>
|
|
<AssemblyName>ytLive</AssemblyName>
|
|
<RootNamespace>ytLive</RootNamespace>
|
|
</PropertyGroup>
|
|
|
|
<ItemGroup>
|
|
<Compile Remove="ytLive.Tests\**" />
|
|
<EmbeddedResource Remove="ytLive.Tests\**" />
|
|
<None Remove="ytLive.Tests\**" />
|
|
<Page Remove="ytLive.Tests\**" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<Resource Include="Assets\llamacasty-icon.png" />
|
|
<Resource Include="Assets\llamacasty-logo.jpg" />
|
|
<Resource Include="Assets\starting-background.jpg" />
|
|
<Resource Include="Assets\brb-background.jpg" />
|
|
<Resource Include="Assets\live-background.jpg" />
|
|
<Resource Include="Assets\ending-background.jpg" />
|
|
<Resource Include="Assets\chat-background.jpg" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<None Include="THIRD-PARTY-NOTICES.txt" CopyToOutputDirectory="PreserveNewest" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<AssemblyAttribute Include="System.Runtime.CompilerServices.InternalsVisibleTo">
|
|
<_Parameter1>ytLive.Tests</_Parameter1>
|
|
</AssemblyAttribute>
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<PackageReference Include="Microsoft.Data.Sqlite" Version="8.0.10" />
|
|
<PackageReference Include="NAudio.Wasapi" Version="2.2.1" />
|
|
<PackageReference Include="NAudio.WinMM" Version="2.2.1" />
|
|
<PackageReference Include="Notification.Wpf" Version="11.0.0" />
|
|
<PackageReference Include="SQLitePCLRaw.bundle_e_sqlite3" Version="2.1.12" />
|
|
<PackageReference Include="System.Security.Cryptography.ProtectedData" Version="8.0.0" />
|
|
<PackageReference Include="Microsoft.Web.WebView2" Version="1.0.2903.40" />
|
|
<PackageReference Include="Velopack" Version="1.2.0" />
|
|
</ItemGroup>
|
|
|
|
</Project>
|