2.2 KiB
Player API Reference
Overview
Player service base URL: http://localhost:3001
This document uses OpenAPI-style sections, but stays in plain markdown.
Endpoints
GET /
Returns a plain-text landing response for the player service.
GET /screen/{slug}
Returns the rendered player page for a screen.
GET /api/screens/{slug}/playlist
Returns the current playlist payload for a screen.
GET /api/screens/{slug}/connections
GET /api/screens/{slug}/clients
Returns the live player connection snapshot for a screen.
POST /api/screens/{slug}/commands
Sends a command to the player connections for a screen.
Accepted request fields:
commandrequiredconnectionIdoptionalclientIdoptionalblackoutoptional whencommand=blackout
Supported commands:
refreshreloadpauseblackoutpreviousnextleftright
If connectionId or clientId is provided, the command targets a single player connection. Otherwise it is broadcast to all connections for that screen.
Response Shapes
Playlist Response
GET /api/screens/{slug}/playlist returns an object with:
screenplaylistslides
Connections Response
GET /api/screens/{slug}/connections and GET /api/screens/{slug}/clients return an object with:
screenscreenSlugcountconnections
Command Response
POST /api/screens/{slug}/commands returns an object with:
screenscreenSlugcommandconnectionIdsent
Data Models
Screen
idnameslugplaylist_idcreated_atmodified_at
Playlist
idnamefade_between_slides
Slide
idtitlebodyduration_secondsschedule_modeschedule_start_datetimeschedule_end_datetimeschedule_start_timeschedule_end_timeschedule_days_jsonmedia_urlmedia_typekindtemplate_idtemplatecontent
Connection
idclientIdlabeluserAgentviewportpagecurrentSlidepausedblackoutclientIpremoteAddressconnectedAtlastSeenAt
Notes
- The player API is the only surface documented here.
- Web UI/admin routes are intentionally omitted.