From 47faf3862e271c07488dac358133a86145b97213 Mon Sep 17 00:00:00 2001 From: Rob Coleman Date: Thu, 22 Jan 2026 00:30:16 -0800 Subject: [PATCH] fix: Add support for AAC streaming route for universal groups (#2990) * Add support for AAC streaming route * Add support for AAC audio format Add a case to properly set to the audio format to AAC if the original format is AAC and the target format can't be determined from the player. * Remove unnecessary special case for AAC --- music_assistant/providers/universal_group/player.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/music_assistant/providers/universal_group/player.py b/music_assistant/providers/universal_group/player.py index ed5a9f0e..b1158820 100644 --- a/music_assistant/providers/universal_group/player.py +++ b/music_assistant/providers/universal_group/player.py @@ -72,6 +72,11 @@ class UniversalGroupPlayer(GroupPlayer): f"/ugp/{self.player_id}.mp3", self._serve_ugp_stream ) ) + self._on_unload_callbacks.append( + self.mass.streams.register_dynamic_route( + f"/ugp/{self.player_id}.aac", self._serve_ugp_stream + ) + ) # allow grouping with all providers, except the ugp provider itself self._attr_can_group_with = { x.instance_id -- 2.34.1