From: Marcel van der Veldt Date: Wed, 26 Mar 2025 23:55:55 +0000 (+0100) Subject: Fix: send volume at start of playback on airplay player X-Git-Url: https://git.kitaultman.com/?a=commitdiff_plain;h=e6f6550594d32d776b5537b2ba3d0048d976a602;p=music-assistant-server.git Fix: send volume at start of playback on airplay player --- diff --git a/music_assistant/providers/airplay/raop.py b/music_assistant/providers/airplay/raop.py index cf8d0902..d2e2751d 100644 --- a/music_assistant/providers/airplay/raop.py +++ b/music_assistant/providers/airplay/raop.py @@ -295,6 +295,10 @@ class RaopStream: if "Cannot connect to AirPlay device" in line: self.ffmpeg_reader_task.cancel() raise PlayerCommandFailed("Cannot connect to AirPlay device") + # repeat sending the volume level to the player because some players seem + # to ignore it the first time + # https://github.com/music-assistant/support/issues/3330 + await self.send_cli_command(f"VOLUME={mass_player.volume_level}\n") # start reading the stderr of the cliraop process from another task self._stderr_reader_task = self.mass.create_task(self._stderr_reader())