video-promo-block
/
5.16.1-arc-themes-release-version-1.20.3460
video-promo-block 5.16.1-arc-themes-release-version-1.20.3460
Install from the command line:
Learn more about npm packages
$ npm install @wpmedia/video-promo-block@5.16.1-arc-themes-release-version-1.20.3460
Install via package.json:
"@wpmedia/video-promo-block": "5.16.1-arc-themes-release-version-1.20.3460"
About this version
The block contains an video promo component. Pagebuilder users can feature a video on the homepage or similar pages to encourage readers to watch it. They can configure the content of the video, title, description, and a live video label for this block.
The block depends on a new environment variable videoEnv
(usually sandbox or prod) required by the powa player in addition to playerRoot
and videoOrg
.
#####Under the theme repo:
- update the
videoEnv
value inenvironment/index.json
e.g.videoEnv=prod
. - Update
.env
file withvideoOrg=prod
andvideoOrg=corecomponents
- Link to your local engine-theme-sdk in
.env
file.ENGINE_SDK_REPO={PATH_TO_LOCAL}/blocks/engine-theme-sdk
PageBuilder users can configure:
- Video
- Title
- Description
- Alert Badge
- Autoplay
- Playthrough
Prop | Required | Type | Description |
---|---|---|---|
itemContentConfig | yes (no if inheritGlobalContent is checked) | contentConfig | the content source config to fetch a video (ex use content-api and specify the website_url of a video) |
autoplay | no | boolean | if set to true, the video will auto play and be muted by default |
title | no | string | the title of the component, will be overwritten if inheritGlobalContent is checked |
description | no | string | the description of the component, will be overwritten if inheritGlobalContent is checked |
alertBadge | no | string | a LIVE VIDEO label will show up on top of the component if value is not empty |
inheritGlobalContent | no | Boolean | Determines whether or not the feature will use global content instead of the provided content config at the feature level. This is used by default. |
playthrough | no | boolean | enable/disable playthrough for videos , default set to false |
ANS of the video type
-
globalContent._id
(optional) -
globalContent.headlines.basic
(optional) -
globalContent.description.basic
(optional)
- N/A
This block does not emit any events.
This block does not listen to any events.
N/A
Details
- video-promo-block
- WPMedia
- over 2 years ago
- CC-BY-NC-ND-4.0
- 4 dependencies
Assets
- video-promo-block-5.16.1-arc-themes-release-version-1.20.3460-npm.tgz
Download activity
- Total downloads 300
- Last 30 days 0
- Last week 0
- Today 0