feat: 完成基本的Jpeg控制

This commit is contained in:
2025-08-08 18:38:16 +08:00
parent 58378851bb
commit bbde060d11
14 changed files with 929 additions and 1680 deletions

View File

@@ -23,7 +23,7 @@ public class HttpHdmiVideoStreamService : BackgroundService
public override async Task StartAsync(CancellationToken cancellationToken)
{
_httpListener = new HttpListener();
_httpListener.Prefixes.Add($"http://*:{_serverPort}/");
_httpListener.Prefixes.Add($"http://{Global.localhost}:{_serverPort}/");
_httpListener.Start();
logger.Info($"HDMI Video Stream Service started on port {_serverPort}");

File diff suppressed because it is too large Load Diff

View File

@@ -41,7 +41,7 @@ public class ProgressReporter : ProgressInfo, IProgress<int>
private ProgressStatus _status = ProgressStatus.Pending;
private string _errorMessage;
public string TaskId { get; set; } = new Guid().ToString();
public string TaskId { get; set; } = Guid.NewGuid().ToString();
public int ProgressPercent => _progress * 100 / MaxProgress;
public ProgressStatus Status => _status;
public string ErrorMessage => _errorMessage;