Skip to main content

Integration of external data

🔌 How to connect data to HTML

  1. Create a data source (pointer to the content server with parameters)

(Картинка)

  1. Connect the created source to the HTML content (loaded in the library, widgets or fillers).

(Картинка)

  1. After that, the player will listen to the data source

Content server with parameters (updating data in content without the participation of the Oohdesk CMS server)

When launched, the players connect via http/https to the specified URL. The server immediately sends the current data in JSON format, for example:

{
"id": 125,
"data": {
"$playback-data-resource": "http://192.168.0.1:8080/image_3.jpg"
}
}

The line feed at the end is mandatory.

The server then does not close the connection and starts sending an empty string \n every 10 seconds to maintain the connection. When there is new data, the server sends it.