Video Component

Video

Function: a!videoField()

Displays a video from the web.

See also: Web Video

Parameters

Name Keyword Types Description

Label

label

Text

Text to display as the field label.

Label Position

labelPosition

Text

Determines where the label appears. Valid values:

  • "ABOVE" (default) Displays the label above the component.
  • "ADJACENT" Displays the label to the left of the component.
  • "COLLAPSED" Hides the label. The label will still be read by screen readers; see accessibility considerations for more information.
  • "JUSTIFIED" Aligns the label alongside the component starting at the edge of the page.

Instructions

instructions

Text

Supplemental text about this field.

Videos

videos

Any Type

Array of videos to display, created with a!webVideo().

Help Tooltip

helpTooltip

Text

Displays a help icon with the specified text as a tooltip. The tooltip displays a maximum of 500 characters. The help icon does not show when the label position is "COLLAPSED".

Accessibility Text

accessibilityText

Text

Additional text to be announced by screen readers. Used only for accessibility; produces no visible change.

Visibility

showWhen

Boolean

Determines whether the component is displayed on the interface. When set to false, the component is hidden and is not evaluated. Default: true.

Notes

  • The video formats supported by this component vary by device and browser. Videos of a format not supported by a device/browser will not play in the device/browser.
    • WebM and Ogg are supported on Chrome and Firefox.
    • MP4, 3gp, mov, and mpv are supported on iOS devices.
    • MP4, 3gp, webm, and mkv are supported on Android devices.
  • Videos served over HTTP and HTTPS are both supported. For videos that require authentication, we strongly recommend that you set up single sign-on between Appian and the server that hosts the video so that the video can play without requiring the user to authenticate a second time.

Examples

Copy and paste an example into the INTERFACE DEFINITION in EXPRESSION MODE to see it displayed.

1
2
3
4
5
6
7
8
=a!videoField(
  label: "Video Example",
  videos: {
    a!webVideo(
      source: "http://www.w3schools.com/html/mov_bbb.mp4"
    )
  }
)

Returns the following:

The video controls allow users to play and pause the video, manage volume, expand to full screen, etc.

FEEDBACK