feat: enhance audio playback features and UI, including audio player dialog and improved file size handling

This commit is contained in:
HueByte
2026-02-21 19:50:09 +01:00
parent 3e03a77aeb
commit de34fb43b9
7 changed files with 485 additions and 6 deletions
+2 -2
View File
@@ -896,9 +896,9 @@ public sealed class AppOrchestrator : IDisposable
RunAsync(async () =>
{
InvokeUI(() => _mainWindow.AddSystemMessage(_mainWindow.CurrentChannel, $"Playing {fileName}..."));
InvokeUI(() => _mainWindow.AddSystemMessage(_mainWindow.CurrentChannel, $"Downloading {fileName}..."));
var tempPath = await _apiClient!.DownloadFileToTempAsync(attachmentUrl, fileName);
await _audioPlayback.PlayAsync(tempPath);
InvokeUI(() => AudioPlayerDialog.Show(_app, _audioPlayback, tempPath, fileName));
}, "Failed to play audio");
}