diff --git a/DanmakuPlayer/DanmakuPlayer.csproj b/DanmakuPlayer/DanmakuPlayer.csproj
index 11a2f13..23ef163 100644
--- a/DanmakuPlayer/DanmakuPlayer.csproj
+++ b/DanmakuPlayer/DanmakuPlayer.csproj
@@ -40,14 +40,14 @@
-
+
-
+
-
+
@@ -68,6 +68,7 @@
Always
x86|x64|arm64
0
+ True
diff --git a/DanmakuPlayer/Package.appxmanifest b/DanmakuPlayer/Package.appxmanifest
index 3c15ba1..ec09eb8 100644
--- a/DanmakuPlayer/Package.appxmanifest
+++ b/DanmakuPlayer/Package.appxmanifest
@@ -10,7 +10,7 @@
+ Version="3.8.0.0" />
Danmaku Player
diff --git a/DanmakuPlayer/Resources/ConstantStrings.cs b/DanmakuPlayer/Resources/ConstantStrings.cs
index 9e26728..b55ea6a 100644
--- a/DanmakuPlayer/Resources/ConstantStrings.cs
+++ b/DanmakuPlayer/Resources/ConstantStrings.cs
@@ -38,7 +38,7 @@ public static class ConstantStrings
public static string AppTitle => AppInfoResources.AppTitle;
- public static string AppAboutHeader => AppTitle + " v3.7.0";
+ public static string AppAboutHeader => AppTitle + " v3.8.0";
public static IEnumerable FontFamilies { get; }
diff --git a/DanmakuPlayer/Views/Controls/WebView2ForVideo.xaml.cs b/DanmakuPlayer/Views/Controls/WebView2ForVideo.xaml.cs
index 6ebc7b2..cd453f9 100644
--- a/DanmakuPlayer/Views/Controls/WebView2ForVideo.xaml.cs
+++ b/DanmakuPlayer/Views/Controls/WebView2ForVideo.xaml.cs
@@ -109,7 +109,12 @@ public async Task LockOperationsAsync(Func task)
private async void OnLoaded(object sender, RoutedEventArgs e)
{
- await WebView2.EnsureCoreWebView2Async();
+ var opt = new CoreWebView2EnvironmentOptions
+ {
+ AdditionalBrowserArguments = "--proxy-auto-detect"
+ };
+ var env = await CoreWebView2Environment.CreateWithOptionsAsync(null, null, opt);
+ await WebView2.EnsureCoreWebView2Async(env);
Pw = await Playwright.CreateAsync();
Browser = await Pw.Chromium.ConnectOverCDPAsync($"http://localhost:{App.RemoteDebuggingPort}");
Page = Browser.Contexts[0].Pages[0];
diff --git a/README.md b/README.md
index 19144fb..0ee8753 100644
--- a/README.md
+++ b/README.md
@@ -141,7 +141,7 @@ B站视频[【炮姐/AMV】我永远都会守护在你的身边!](https://www.
项目地址:[GitHub](https://github.com/Poker-sang/DanmakuPlayer)
-版本:3.7.1
+版本:3.8.0
## 联系方式