Fix playback with the Web Player for iOS devices (#2319)
authorMaxim Raznatovski <nda.mr43@gmail.com>
Wed, 13 Aug 2025 22:49:28 +0000 (00:49 +0200)
committerGitHub <noreply@github.com>
Wed, 13 Aug 2025 22:49:28 +0000 (00:49 +0200)
music_assistant/providers/builtin_player/player.py

index ca744beeeb1c79ee0d492c829f45d2b115bb6954..1082f179947d951d1951a91c0fc08bf234b9b3d3 100644 (file)
@@ -247,14 +247,8 @@ class BuiltinPlayer(Player):
         # Check for a client probe request (from an iPhone/iPad)
         if (range_header := request.headers.get("Range")) and range_header == "bytes=0-1":
             self.logger.debug("Client is probing the stream.")
-
-            # Avoids us to staring multiple ffmpeg instances for probe requests
-            return web.Response(
-                status=206,  # Partial Content
-                headers=headers,
-                # Just send something
-                body=b"\x00\x00",
-            )
+            # We don't early exit here since playback would otherwise never start
+            # on iOS devices with Home Assistant OS installations.
 
         media = player.current_media
         if queue is None or media is None: