Developer Documentation Library > Interview templates > UXUI built-in templates > Video template
 
Video template
Use the Video template to display a video to the respondent.
Associated uxui_template_props
src
Specify the source file for the video. To indicate the folders in the path, use either / (forward slash) or \\ (two backslashes).
controls
Specify whether the player controls are displayed (true or false).
The default value is true.
autoplay
true starts playback of the video when the video is loaded. Many browsers allow autoplay only if the audio is muted.
muted
true mutes the audio. The audio can be unmuted by using the controls, if they are displayed.
The default value is false.
mustPlayEnd
true disables the Next button until the video playback completes.
The default value is true.
preload
Specifies when the browser loads the video:
auto: Load the entire video when the page loads.
metadata: Load only the metadata when the page loads.
none: The browser loads only when the respondent clicks Play, not when the page loads.
The default value is auto.
useImageCache
true uses the ImageCache to load the video. The source path (src) must be a relative URL.
If false, specify a full URL in the source path.
The default value is true.
width
Set the height and width for the video. If not set, the width is set to 100% of the video size. The height is set to match the width based on the aspect ratio of the video.
bgcolor
Set to the background color for the signature area.
color
Set the pen color for the signature area.
penWidth
Set the width of the pen line, measured in pixels.
The default value is 2.
Applies to
Text questions
Example
Vid1 "Review the video, and then click Next to answer some questions about it. The Next button is enabled after the video has been played."
[
uxui_template_name = "Video",
uxui_template_props = "{ src: 'Video/Sail.mp4' }"
]
info;
See
Interview templates