This repository has been included in the administration as a bundle in os2display 6.1.0. https://github.com/os2display/admin/blob/master/CHANGELOG.md#610
No new development will not be made in this repository.
This is a javascript client for aroskanalen dislpay systems. For more information see https://github.com/aroskanalen/docs/blob/development/Installation%20guide.md in the docs repository on github.com.
- The index.html loads all resources starts the indexController.
- The indexController starts the socket.js which sets up the connection with the middleware.
- if there exists a token in the cookie the connection is resumed with this token.
- else the activation page is shown where the screen is activated
- After the screen is activated, it receives the data for the screen (template and options), and the channels for the given screen.
- The screen template is loaded from the backend. This contains a number of regions.
- Each region has an id.
- When a channel is received it is emitted with the 'addChannel' event.
- Each region receives this event. If the channel.region matches the region the channel is added. If not it is removed if it exists.
- Each region contains a number of channels that are looped. Each channel contains a number of slides which are displayed one at a time.