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●required
string
CMS ID.
video●required
VideoProps
Video configuration object.
mutedAutoplay●required
boolean
If true, the video starts automatically with sound muted.
hideControls●required
boolean
If true, hide the native playback controls.
loop●required
boolean
If true, repeat playback.
mobileAspect●required
'SIXTEEN_TO_NINE' | 'FOUR_TO_THREE' | 'NINE_TO_SIXTEEN'
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