v0.56.1: AirPlay diagnostics — log each stream, choose the protocol

tiat.place connects but stays silent; pyatv streams to it with its AirPlay 2
path, which the fake receiver never exercised. Log every stream's start,
first audio and outcome; config.json airplay_protocol (auto/1/2) forces a
version and airplay_debug turns on pyatv's own debug log.
This commit is contained in:
2026-10-15 16:07:20 -07:00
parent c1aee48b8b
commit c2a566bf57
7 changed files with 66 additions and 4 deletions
+8
View File
@@ -489,3 +489,11 @@ class TestIndicator:
assert vis.toolTip() == "Playing on tiat.place — click to stop"
vis.mousePressEvent(None)
airplay.disconnect.assert_called_once()
def test_protocol_choice_defaults_to_auto():
assert support.protocol_choice(None) == "auto"
assert support.protocol_choice("1") == "1"
assert support.protocol_choice("v1") == "1"
assert support.protocol_choice(2) == "2"
assert support.protocol_choice("three") == "auto"