TPU SOUND PROJECT

Index:

  1. Introduction
  2. HW requirements
  3. SW requirements
  4. UPnP services used
  5. The UPnP control point
  6. The UPnP media renderer (smart speaker)
  7. The user interface

TPU-Sound Project

The user interface - Dynamic part

The dynamic part is the section of the code used to build a web page which manages the interaction between the customer and the server.

When the customer acts on the interface by moving the position of the punter on the time bar or on the volume bar, by clicking on a button or by selecting a NAS he thoughtlessly order to the dynamic functions to communicate with the server, which automatically acts by sending back new instructions for the dynamic part.

Those instructions will modify the aspect of the interface in the way the customer asked to.

All these dynamic actions are governed, in our case, by javascript files.

We are not going to explain deeply what the code in every file means but we will focus on the most important js file we have written.

Particularly we will talk about:

The " index.js " file is loaded only in the main view meanwhile the others two files are always loaded except for the main view. The first two files are very simple and the " eventing.js " file is a bit more longer and contains the best part of the dynamic functions.