Skip to content

Latest commit

 

History

History
63 lines (42 loc) · 2.07 KB

amp-brightcove.md

File metadata and controls

63 lines (42 loc) · 2.07 KB

amp-brightcove

An amp-brightcove component displays a Brightcove Video Cloud or Perform player.

Example:

<amp-brightcove
    data-account="12345"
    data-player-id="default"
    data-embed="default"
    data-video-id="1234"
    layout="responsive"
    width="480" height="270">
</amp-brightcove>

The width and height will determine the aspect ratio of the player embed in responsive layouts.

Attributes

data-account

The Brightcove Video Cloud or Perform account id

data-player-id

The Brightcove player id. This is a GUID or "default". The default value is "default".

data-embed

The Brightcove player id. This is a GUID or "default". The default value and most common value is "default".

data-video-id

The Video Cloud video id. Most Video Cloud players will need this. This is not used for Perform players.

data-playlist-id

The Video Cloud playlist id. For AMP HTML uses a video id will normally be used instead. If both a playlist and a video are specified, the playlist takes precedence. This is not used for Perform players.

Player configuration

This script should be added to the configuration of Brightcove Players used with this component. This allows the AMP document to pause the player. Only the script need be added, no plugin name or JSON are needed.