Video
Qubes 6.1 Video playback component.
Properties
| Property | Description |
| ControlsVisible | Visibility of the browser's video playback controls (rendering will vary by browser). |
| Enabled | Boolean indicating whether or not the component is enabled. |
| Hint | Specifies the user hint string that will appear in the component's interactive help bubble. |
| Loop | Boolean indicating whether or not the video playback should loop automatically. |
| Preload | Indicates whether or not the browser should preload the video (auto, none or metadata). |
| Sources | List of video resource files (primary format and alternate formats). |
| Trigger | How playback is triggered (autoplay by default). |
| ValueInitial | Determines the component's initial value when the screen opens and each time it is reset (see Reset Button). |
| Visible | Boolean indicating whether or not the component will be visible. |
| Volume | Volume from 0 (silent) to 100 (loudest). |
Value
N/A
Remarks
The Trigger property controls how the video is triggered, the special value of autoplay indicating that the video 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 video from the beginning. Assigning an empty value or a value of zero, false or pause will stop the video. Changing the value to resume will restart the video 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).
- served by a web server: Qubes 7.1
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 /).