Audio

Qubes 6.1 Audio playback component.

Properties

PropertyDescription
ControlsVisibleVisibility of the browser's audio playback controls (rendering will vary by browser).
EnabledBoolean indicating whether or not the component is enabled.
HintSpecifies the user hint string that will appear in the component's interactive help bubble.
LoopBoolean indicating whether or not the audio playback should loop automatically.
PreloadIndicates whether or not the browser should preload the audio (auto, none or metadata).
SourcesList of audio resource files (primary format and alternate formats).
TriggerHow playback is triggered (autoplay by default).
ValueInitialDetermines the component's initial value when the screen opens and each time it is reset (see Reset Button).
VisibleBoolean indicating whether or not the component will be visible.
VolumeVolume from 0 (silent) to 100 (loudest).

Value

N/A

Remarks

The Trigger property controls how the sound is triggered, the special value of autoplay indicating that the sound will play automatically when the screen is opened.
Trigger reacts to changes in value. For example, a change from 1 to 2 will restart the sound from the beginning. Assigning an empty value or a value of zero, false or pause will stop the sound. Changing the value to resume will restart the sound from where it was stopped.

The Sources property is a list, used to indicate the media feed, in several alternate formats, to ensure compatibility with different browsers.
However, some browsers (like the Android browser) do not support alternate sources, so the primary format should be listed first.

XForms supports two types of locations for media flows:

  • contained in XForms's resources:

In this case, the Sources list must contain the name of the resource you want to use. The name of this resource absolutely must take the form of "name.extension".
Note: This scenario is not recommended for large media files (maximum of 1 MB).

In this case, the Sources list must include two elements: first, the media flow's URL and, second, the flow's MIME type (e.g. video/mp4).
Note: The flow's URL must be absolute (i.e. starting with "http" or "https") or relative to QubesExpress (i.e. starting with . or /).

Classification

Media