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
+4 -1
View File
@@ -6,7 +6,10 @@
- New `Audio` message type — uploaded audio files (`.mp3`, `.wav`, `.ogg`, `.flac`, `.aac`, `.m4a`, `.wma`) are automatically detected and categorized
- TUI client renders audio messages with `♪ [Audio: filename] (Enter to play)` indicator
- Press Enter on an audio message to play it locally via `AudioPlaybackService` (NetCoreAudio)
- Press Enter on an audio message to open the **Audio Player dialog** with animated wave visualization, play/pause/stop controls, and volume slider
- Audio file upload limit raised to **20 MB** (separate from the 10 MB general file limit)
- `AudioPlaybackService` enhanced with pause/resume, volume control, and playback-finished events
- Fixed: wrapped audio/file messages now remain clickable on all lines (attachment metadata propagated through word-wrap)
- IRC gateway formats audio messages as `♪ [Audio: filename] url`
- Server detects audio files by extension via `FileValidationHelper.IsAudioFile()`