video-player-block
/
5.17.1-arc-themes-release-version-2.0.3.4654
video-player-block 5.17.1-arc-themes-release-version-2.0.3.4654
Install from the command line:
Learn more about npm packages
$ npm install @wpmedia/video-player-block@5.17.1-arc-themes-release-version-2.0.3.4654
Install via package.json:
"@wpmedia/video-player-block": "5.17.1-arc-themes-release-version-2.0.3.4654"
About this version
Fusion News Theme video player block. Provides a feature to play videos.
- Add AC relevant to the block
Prop | Required | Type | Description |
---|---|---|---|
customFields.websiteURL | No | String | website URL of the video that should be played in this instance of the video player. |
customFields.itemContentConfig | No | Object | Content 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.inheritGlobalContent | No | Boolean | Indicates whether this feature should pull video data from global content. |
customFields.autoplay | No | Boolean | Indicates whether the video should autoplay on load. |
customFields.playthrough | No | Boolean | If 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.title | No | String | A title to display above the video player. |
customFields.description | No | String | A description to display below the video player. |
embedMarkup | No | String | The video embed of the video to play. |
enableAutoplay | No | String | Indicates whether the video should autoplay on load. |
required prop | Yes | ||
optional prop | No | ||
contentConfig example | Please specify which content sources are compatible |
Outline any schema information requirements necessary to know for ths block.
embed_html
Phrase key | Default (English) |
---|---|
key |
english translation |
Blocks can emit events. The following is a list of events that are emitted by this block.
Event Name | Description |
---|---|
eventName | Describe the event |
Include block specific instructions for event listening.
OR
This block does not emit any events.
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.
Details
- video-player-block
- WPMedia
- over 1 year ago
- CC-BY-NC-ND-4.0
- 3 dependencies
Assets
- video-player-block-5.17.1-arc-themes-release-version-2.0.3.4654.tgz
Download activity
- Total downloads 24
- Last 30 days 0
- Last week 0
- Today 0
Recent versions
View all- 5.17.1-arc-themes-release-version-1.33.3561
- 5.17.1-arc-themes-release-version-2.1.3.4759
- 5.17.1-arc-themes-release-version-2.1.3.4756
- 5.17.1-arc-themes-release-version-2.1.2.4756
- 5.17.1-arc-themes-release-version-2.1.1.4742
- 5.17.1-arc-themes-release-version-2.1.1.4741
- 5.17.1-arc-themes-release-version-2.0.3.4719
- 5.17.1-arc-themes-release-version-2.0.3.4657
- 5.17.1-arc-themes-release-version-2.0.3.4654
- 5.17.1-arc-themes-release-version-2.0.3.4636