Local Web API is a simple way for integrating outside devices and trigger content in the player through a local network HTTP call.
The Local Web API is supported by screenpublishing on Android, Windows, Linux, Mac, and BrightSign players.
Important: To use the Local Web API this option must be enabled in the player settings.
Endpoint | Method | Meaning |
---|---|---|
http://127.0.0.1:5544/trigger/{pattern} | POST | Triggers the play of a campaign or a playlist which is configured with an interactivity containing the pattern {pattern}. |
http://127.0.0.1:5544/campaign/current/stop | POST | Stops the current content playing, skipping to the next one in the loop. |
http://127.0.0.1:5544/attribute/{name}/{value} | PUT | Sets the attribute {name} with the value {value}. |
http://127.0.0.1:5544/attribute/{name} | GET | Retrieves the attribute named {name} as JSON, in the format {“name”: “attr_name”, “value”: “attr_value”}. If no value is set for this attribute or attribute doesn’t exist, returns {“name”: “attr_name”, “value”: null}. |
http://127.0.0.1:5544/attributes | GET | Retrieves list of all attributes currently set as JSON, in the format {“attributes”: [{“name”: “attr_name”, “value”: “attr_value”}]}. If no value is set for an attribute, it is not listed. |
Endpoint | Method | Meaning |
---|---|---|
http://127.0.0.1:5544/trigger/{pattern} | GET, POST | Triggers the play of a campaign or a playlist which is configured with an interactivity containing the pattern {pattern}. |
http://127.0.0.1:5544/campaign/current/stop | GET, POST | Stops the current content playing, skipping to the next one in the loop. |
http://127.0.0.1:5544/playback/status | GET, POST | Retrieve the playback status as JSON, in the format {“visible”: true, “playing”: true}. |
http://127.0.0.1:5544/playback/show | GET, POST | Shows the player window. If window is already visible, nothing happens. |
http://127.0.0.1:5544/playback/hide | GET, POST | Hides the player window. Playback still happens in the background. |
http://127.0.0.1:5544/playback/start | GET, POST | Starts playing content. If content is already playing, nothing happens. |
http://127.0.0.1:5544/playback/stop | GET, POST | Stops playing content. Displays a black screen until playback is resumed. |
Cookie | Duration | Description |
---|---|---|
cookielawinfo-checkbox-analytics | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics". |
cookielawinfo-checkbox-functional | 11 months | The cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional". |
cookielawinfo-checkbox-necessary | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary". |
cookielawinfo-checkbox-others | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other. |
cookielawinfo-checkbox-performance | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance". |
viewed_cookie_policy | 11 months | The cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data. |