Skip to Content

Video banner

Audience: CMS editors and developers.

Type: VideoBlockBanner.

This banner shows one video with playback options.

This banner includes the common banner props.

Properties

id●
string
required

CMS ID.

video●
VideoProps
required

Video configuration object.

mutedAutoplay●
boolean
required

If true, the video starts automatically with sound muted.

hideControls●
boolean
required

If true, hide the native playback controls.

loop●
boolean
required

If true, repeat playback.

mobileAspect●
'SIXTEEN_TO_NINE' | 'FOUR_TO_THREE' | 'NINE_TO_SIXTEEN'
required

Aspect ratio to use on mobile layouts.

Example

const banner: VideoBlockBanner = { typename: BannerTypename.VideoBlock, id: 'b_123', title: null, titleTag: 'h2', titleAlign: 'left', cssId: null, cssClasses: null, video: {} as any, mutedAutoplay: true, hideControls: false, loop: true, mobileAspect: 'SIXTEEN_TO_NINE' };
Last updated on