Data stream server
A case where players listen to data from an external source themselves.
Content server with parameters (content data updates without the involvement of the Oohdesk CMS server)
When launched, players connect to the specified URL via http/https. 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 at the end must be translated.
Next, the server does not close the connection and begins sending an empty string \n every 10 seconds to maintain the connection. When new data is available, the server sends it.
Translated with DeepL.com (free version)