5.13.3 • Published 3 years ago

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

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

@wpmedia/video-player-block

Fusion News Theme video player block. Provides a feature to play videos.

Acceptance Criteria

  • Add AC relevant to the block

Props

PropRequiredTypeDescription
customFields.websiteURLNoStringwebsite URL of the video that should be played in this instance of the video player.
customFields.itemContentConfigNoObjectContent configuration. Must be a content source that supports the ans-item schema, as well as the necessary parameters needed to make the content source call.
customFields.inheritGlobalContentNoBooleanIndicates whether this feature should pull video data from global content.
customFields.autoplayNoBooleanIndicates whether the video should autoplay on load.
customFields.playthroughNoBooleanIf your Goldfish instance is configured to provide recommended videos a value of "true" will result in the player continuing to "play through" recommended videos after the specified video has completed.
customFields.titleNoStringA title to display above the video player.
customFields.descriptionNoStringA description to display below the video player.
embedMarkupNoStringThe video embed of the video to play.
enableAutoplayNoStringIndicates whether the video should autoplay on load.
required propYes
optional propNo
contentConfig examplePlease specify which content sources are compatible

ANS Schema

Outline any schema information requirements necessary to know for ths block

ANS Fields

  • embed_html

Internationalization fields

Phrase keyDefault (English)
keyenglish translation

Events

Blocks can emit events. The following is a list of events that are emitted by this block.

Event NameDescription
eventNameDescribe the event

Event Listening

Include block specific instructions for event listening.

OR

This block does not emit any events.

Additional Considerations

This block needs the following environmental variables in your bundle's /environment/index.js file:

{
    ...
    "playerRoot": "//d2w3jw6424abwq.cloudfront.net",
    "videoOrg": <organization name>
    ...
}

For testing, corecomponents can be used for the org name.

You can either directly feed the websiteURL variable in the custom field with the video url from the Video Center, or have it inherit the global content.

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