This commit is contained in:
2025-07-18 20:20:21 +08:00
parent 37373ab176
commit 4b03058156
8 changed files with 1619 additions and 37 deletions
+1 -4
View File
@@ -34,9 +34,6 @@ namespace Hi.Webapi.Hubs
var engine = _renderingService.GetOrCreateEngine(sessionId);
_logger.LogInformation($"Engine created/retrieved - SessionId: {sessionId}");
// 創建並設置測試顯示對象
_logger.LogInformation($"TestDisplayee set - SessionId: {sessionId}");
// 啟動引擎(必須在設置回調之前)
engine.Start(width, height);
_logger.LogInformation($"Engine started with size {width}x{height} - SessionId: {sessionId}");
@@ -50,7 +47,7 @@ namespace Hi.Webapi.Hubs
// 設置渲染回調
unsafe
{
engine.ImageRequestAfterBufferSwapped += (bgra, w, h) =>
engine.ImageRequestAfterBufferSwapped += (byte* bgra, int w, int h) =>
{
if (bgra == null)
return;