Compare commits

...

2 Commits

Author SHA1 Message Date
53b9571e0e 清除圖庫 2025-05-19 15:47:23 +08:00
7d36ca7e58 修正點歌無法顯示 2025-05-19 13:53:46 +08:00
8 changed files with 2 additions and 3 deletions

View File

@ -39,7 +39,6 @@ namespace DualScreenDemo
private static CancellationTokenSource _cts;
private static Task _serverTask;
private static string _baseDirectory = @"themes\superstar\_www"; // 根據實際情況設定
private static SongListManager _songListManager;
private static TaskCompletionSource<string> _qrReadyTcs;
/*
@ -139,7 +138,7 @@ namespace DualScreenDemo
*/
public static async Task StartServer(string baseDirectory, int port, SongListManager manager, CancellationToken token)
{
_songListManager = manager;
songListManager = manager;
string randomFolderName = CreateRandomFolderAndRedirectHTML(baseDirectory);
randomFolderPath = randomFolderName;
Console.WriteLine("測試" + randomFolderPath);
@ -223,7 +222,7 @@ namespace DualScreenDemo
// ✅ 等 QR code 跑完
_qrReadyTcs = new TaskCompletionSource<string>();
_serverTask = StartServer(_baseDirectory, _port, _songListManager, _cts.Token);
_serverTask = StartServer(_baseDirectory, _port, songListManager, _cts.Token);
string readyFolder = await _qrReadyTcs.Task;
// ✅ 等 QR Code 圖片準備好之後再處理 UI 更新

Binary file not shown.

Before

Width:  |  Height:  |  Size: 30 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 32 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 29 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 59 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 32 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 29 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 30 KiB