Description

The SoundWidget is a WebWidget to play a sound when there is a Boolean event in the station. The sound played can then be cut by a simple click on the widget. This makes it possible, for example, to play a sound in a page as soon as an alarm occurs.

The WebWidget has 3 states, each of which can have an associated image:

  • Playback
  • Paused
  • Inactive

Example image with sound playback:

Example image with the sound paused by a click:

Example image with sound inactive:

Properties

  • SoundFile: Audio file to play. The file can be local or a web link.

(warning) Some audio file extensions are not compatible with certain browsers (for example, IE11 does not support .wav files).

  • Play: Turns the audio playback on / off.
  • PlayMode: Indicates whether to play the audio Once or in a Loop.
  • PlayTime: Sets the playback time for the audio file.

(warning) If the set time exceeds the duration of the audio file and the playback is looped, the excess will be added to the time set in the WaitTime field.

  • WaitTime: Indicates the wait between each playback if the audio file plays in a loop.
  • ImagePlay: The image to display when the sound is played.
  • ImageSilence: The image to display when the sound has been interrupted (by clicking).
  • ImageOff: The image to display when playback is disabled.
  • Background: Widget background.
  • Radius: Rounds the corners of the widget.
  • Shadow: Adds shading around the widget.


Training

You can follow this e-learning course to practice