From 4dc45d22fddf66b90481cba64b4d6727c8914aae Mon Sep 17 00:00:00 2001 From: "allen.yan" Date: Wed, 19 Mar 2025 11:44:27 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AA=BF=E6=95=B4=E7=84=A1=E5=BF=85=E8=A6=81?= =?UTF-8?q?=E7=9A=84=E8=AE=8A=E6=95=B8=2020250319?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- HttpServer.cs | 4 ++-- TCPServer.cs | 2 +- VideoPlayerForm.cs | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/HttpServer.cs b/HttpServer.cs index bc5d21f..07a8e04 100644 --- a/HttpServer.cs +++ b/HttpServer.cs @@ -26,10 +26,10 @@ namespace DualScreenDemo // 服务器类变量 private static SongListManager songListManager; // 使用完整命名空间来避免歧义 - public static event ActionString OnDisplayBarrage; + //public static event ActionString OnDisplayBarrage; private static DateTime lastClickTime = DateTime.MinValue; public static string randomFolderPath; // 声明全局变量 - private static OverlayForm form; + //private static OverlayForm form; private static readonly ConcurrentDictionary _fileCache = new ConcurrentDictionary(); private static readonly SemaphoreSlim _requestThrottle = new SemaphoreSlim(20); // 限制并发请求数 private static readonly CancellationTokenSource _serverCts = new CancellationTokenSource(); diff --git a/TCPServer.cs b/TCPServer.cs index de2f6ed..1656b5c 100644 --- a/TCPServer.cs +++ b/TCPServer.cs @@ -16,7 +16,7 @@ namespace DualScreenDemo private TcpListener listener; private const int Port = 1000; private readonly string hostNameSuffix; - private bool isProcessingCommand = false; + //private bool isProcessingCommand = false; public TCPServer() diff --git a/VideoPlayerForm.cs b/VideoPlayerForm.cs index 28e5b1f..1845be5 100644 --- a/VideoPlayerForm.cs +++ b/VideoPlayerForm.cs @@ -91,8 +91,8 @@ namespace DualScreenDemo private IVideoWindow videoWindowPrimary; private IMediaEventEx mediaEventExPrimary; private IMediaEventEx mediaEventExSecondary; - private int videoWidth; - private int videoHeight; + //private int videoWidth; + //private int videoHeight; private static bool isInitializationComplete = false; public static OverlayForm overlayForm;