2.18.1

Video

Video Component in Bolt

Stylistic video. Part of the Bolt “Components” CSS framework that powers the Bolt Design System.

Install via NPM
npm install @bolt/video
  {% include "@bolt/video.twig" with {
  videoId: "5609376179001",
  accountId: "1900410236",
  playerId: "r1CAdLzTW",
  showMeta: true,
  showMetaTitle: false
} only %}

Note: when assigning component props as HTML attributes on a web component, make sure to use kebab-case.

Prop Name Description Type Default Value Option(s)
Attributes

A Drupal-style attributes object with extra attributes to append to this component.

object
VideoId

Brightcove ID for this video.

string , number
PlayerId

Brightcover Player ID.

string
AccountID

ID of the Brightcove account that owns the video.

string , number
VideoUuid

A unique identifying string, randomly generated if not provided.

string
Share_description

A custom title to use in the share overlay

string Share This Video
Ratio

Maintain video ratio.

boolean
Collapsed

Should the video be collapsed on load.

boolean
ShowMeta

Should the video show meta data.

boolean true
ShowMetaTitle

Should the video show meta title.

boolean true
Controls

Should the video controls be available.

boolean true
Autoplay

Should the video auto-play on load.

boolean false
Loop

Should the video loop.

boolean false
On_init

The on_init config allows for an external Javascript function inlined on the page to add any 3rd party scripts or video plugins to a <bolt-video> player instance when initializing. Please see the new recommended enabled_plugins and disabled_plugins options below.

string
Enabled_plugins

Space-separated list of built-in <bolt-video> plugins for Brightcove to enable. Current include social, email, playback, and cue. For example: <bolt-video enabled-plugins="cue social email playback">.

string
Disabled_plugins

Space-separated list of any built-in <bolt-video> plugins for Brightcove to disable. Used to opt-out of any video plugins that are enabled by default (ex. the playback plugin). For example: <bolt-video disabled-plugins="playback">.

string
IsBackgroundVideo

Background video feature will be removed with Bolt v3.0

Open Accordion Close Accordion
Default_plugins

An array of the default <bolt-video> player plugins that are globally enabled by default.

array
  • playback
Available_plugins

The built-in <bolt-video> player plugins that are availble to be used in any player instance without requiring the use of any extra Javascript.

array
  • playback, social, email, cue
Debug Panel