feat(signage): slides keep their shape on any screen, custom shapes (21:9, 16:10…), Calibrate the picture edge by edge with presets
A slide is drawn at its playlist's shape, as large as fits the screen's picture, the bands in its own background (or stretched, the screen's choice). Playlists and library slides may have a shape of their own (aspect, Alembic 0045). Signage -> Screens -> Calibrate the picture: the TV outlines its area with arrows and its size, each edge moves pixel by pixel or a preset centres a shape; the TV follows live (signage.calibrate) and reports its window (POST /screen/viewport). Plan 6R.13, F-110. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -56,7 +56,8 @@ def test_a_screen_plays_its_playlist_in_order(client, owner_h, screens, sent):
|
||||
assert [s["transition"] for s in pl["slides"]] == ["fade", "fade", "zoom"] # the playlist's default
|
||||
assert pl["media"][str(pic["id"])]["url"] == pic["urls"]["full"] and pl["media"][str(vid["id"])]["url"] == vid["urls"]["original"]
|
||||
assert pl["media"][str(bg["id"])]["kind"] == "image" and pl["slides"][2]["content"]["background"]["dim"] == 40
|
||||
assert got["screen"] == {"id": screens[1]["id"], "name": "TV 1", "orientation": "landscape", "rotation": 0}
|
||||
assert got["screen"] == {"id": screens[1]["id"], "name": "TV 1", "orientation": "landscape", "rotation": 0,
|
||||
"area": {"left": 0, "top": 0, "right": 0, "bottom": 0}, "fit": "keep", "calibrating": False}
|
||||
assert len(got["version"]) == 16
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user