5.13.3 • Published 3 years ago

@mentor-medier/video-promo-block v5.13.3

Weekly downloads
203
License
CC-BY-NC-ND-4.0
Repository
github
Last release
3 years ago

@wpmedia/video-promo-block

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: 1. update the videoEnv value in environment/index.json e.g. videoEnv=prod. 2. Update .env file with videoOrg=prod and videoOrg=corecomponents 3. Link to your local engine-theme-sdk in .env file. ENGINE_SDK_REPO={PATH_TO_LOCAL}/blocks/engine-theme-sdk

Acceptance Criteria

PageBuilder users can configure:

  • Video
  • Title
  • Description
  • Alert Badge
  • Autoplay
  • Playthrough

Props

PropRequiredTypeDescription
itemContentConfigyes (no if inheritGlobalContent is checked)contentConfigthe content source config to fetch a video (ex use content-api and specify the website_url of a video)
autoplaynobooleanif set to true, the video will auto play and be muted by default
titlenostringthe title of the component, will be overwritten if inheritGlobalContent is checked
descriptionnostringthe description of the component, will be overwritten if inheritGlobalContent is checked
alertBadgenostringa LIVE VIDEO label will show up on top of the component if value is not empty
inheritGlobalContentnoBooleanDetermines whether or not the feature will use global content instead of the provided content config at the feature level. This is used by default.
playthroughnobooleanenable/disable playthrough for videos , default set to false

ANS Schema

ANS of the video type

ANS Fields

  • globalContent._id (optional)
  • globalContent.headlines.basic (optional)
  • globalContent.description.basic (optional)

Internationalization fields

  • N/A

Events

This block does not emit any events.

Event Listening

This block does not listen to any events.

Additional Considerations

N/A

5.13.2

3 years ago

5.13.3

3 years ago

5.11.3

3 years ago

5.11.2

3 years ago

5.10.4

3 years ago

5.10.2

3 years ago

5.10.0

3 years ago

5.9.15

3 years ago