The audio widget embeds an audio file, which can be automatically played by incoming data
- Since:
-
- 0.8.4 (2014)
- Source:
Example
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 elementElement DOM-Element
pathString internal path of the widget
flavourString Flavour of the widget
typeString 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 addressString Source address of the incoming data
valueString Incoming data
- Source: