Audio
TwAudio · Category: Media
Settings
These settings are in the properties panel on the right while the widget is selected. The default value is the value the widget has when it is first added to a page.
| Setting | Type | Default | Description |
|---|---|---|---|
Sourcesrc | File | ./assets/scada/img/video/2Win.mp4 | Media file to play; choose it in the file manager. |
Playplay | Checkbox | Off | Starts playback when turned on and pauses it when turned off; can be bound to a tag. |
Auto Playautoplay | Checkbox | Off | Starts playback automatically when the media loads. Browsers usually block autoplay with sound; turn on Muted as well for it to work. |
Looploop | Checkbox | Off | Starts again from the beginning when the end is reached. |
Controlscontrols | Checkbox | On | Shows the browser's play, pause, volume and timeline controls. |
Mutedmuted | Checkbox | Off | Starts with the sound turned off. |
Enable FlashingenableFlashing | Checkbox | Off | Makes the widget blink (an opacity pulse every second). Usually bound to an alarm condition. |
Log ButtonlogButton | Checkbox | Off | At runtime shows a chart icon when hovering the widget; clicking it adds the Tags bound to the widget to the log Tag list. |
Bindings
In the Bindings (Rules) section of the properties panel, a Tag can be bound to the following properties of this widget with a Direct binding. The binding types (Direct, IntRange, FloatRange, Boolean, Bit) are the same for all widgets; they are described on the Widget Reference page.
title, visible, authorization, x, y, width, height, rotation, class, foregroundColor, backgroundColor, borderColor, borderStyle, borderWidth, borderRadius, borderTopLeftRadius, borderTopRightRadius, enableFlashing, logButton, src, controls, muted, autoplay, loop, play
Common sections
While this widget is selected, the properties panel also shows these common sections: General, Layout, Appearance, Bindings (Rules). These sections are described on the Page Editor page.