feat(backend): signage playlists and slides, screens, built-in pictures (platform-v2 step 5.4a)
- signage_playlists (name, orientation, default transition) and signage_slides (kind menu | image | video | text, position, duration, transition, video to its end, on/off, days / hours / dates, content typed per kind: extra fields refused, pictures / videos as media ids). Alembic 0029. - /api/signage: playlists CRUD, duplicate, timeline order; slides add (at a position), change, delete, duplicate; screens (playlist, orientation, rotation, orientation mismatch). The screen's GET /api/signage/screen gives its playlist resolved for playing with a version hash. Changes send signage.changed only to the screens playing that playlist. - Signage device config: playlist (ref signage_playlists), orientation, rotation. Slides register their media usage. - Built-in pictures: assets/builtin_media/ imported at start (media.builtin), a collection of their own (?collection=builtin|own), never deleted or renamed (media.builtin). - tests: test_signage.py (8); 509 passed. Pack README: the signage row. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -386,6 +386,31 @@
|
||||
},
|
||||
"permissions": {
|
||||
"manage": "Edit signage content"
|
||||
},
|
||||
"config": {
|
||||
"playlist": {
|
||||
"label": "Playlist",
|
||||
"hint": "What this screen plays (Signage).",
|
||||
"none": "Nothing (a blank screen)"
|
||||
},
|
||||
"orientation": {
|
||||
"label": "Orientation",
|
||||
"hint": "How the TV hangs: slides are built for this shape.",
|
||||
"choices": {
|
||||
"landscape": "Landscape (wide)",
|
||||
"portrait": "Portrait (tall)"
|
||||
}
|
||||
},
|
||||
"rotation": {
|
||||
"label": "Turn the picture",
|
||||
"hint": "For a TV mounted sideways that can't turn the picture itself.",
|
||||
"choices": {
|
||||
"0": "No",
|
||||
"90": "90° right",
|
||||
"180": "Upside down",
|
||||
"270": "90° left"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"staff_planning": {
|
||||
|
||||
Reference in New Issue
Block a user