Module: structure/pure/Audio

The audio widget embeds an audio file, which can be automatically played by incoming data

Since:
  • 0.8.4 (2014)
Author:
  • Markus Damman
Source:

Example

Default example for defining an audio widget in the configuration

Default example for defining an audio widget in the configuration

 <audio id="audio_widget" src="path/to/audio_file.mp3">
  <layout colspan="4"/>
  <label>Audio</label>
  <address transform="DPT:1.001" mode="read">0/0/0</address>
</audio>

Requires

Methods


<inner> create(element, path, flavour, type)

Creates the widget HTML code

Parameters:
Name Type Description
element Element

DOM-Element

path String

internal path of the widget

flavour String

Flavour of the widget

type String

Page type (2d, 3d, ...)

Source:
Returns:

HTML code

Type
String

<inner> update(address, value)

Handles updates of incoming data for this widget

Parameters:
Name Type Description
address String

Source address of the incoming data

value String

Incoming data

Source: