Description | An amp-brid-player displays the Brid Player used in Brid.tv Video Platform.
|
Availability | Stable |
Required Script | <script async custom-element="amp-brid-player" src="https://cdn.ampproject.org/v0/amp-brid-player-0.1.js"></script> |
Examples | brid-player.amp.html |
The following lists validation errors specific to the amp-brid-player
tag
(see also amp-brid-player
in the AMP validator specification):
Validation Error | Description |
---|---|
TAG_REQUIRED_BY_MISSING | Error thrown when required amp-brid-player extension .js script tag is missing or incorrect. |
MANDATORY_ATTR_MISSING | Error thrown when data-partner attribute is missing. |
MANDATORY_ATTR_MISSING | Error thrown when data-player attribute is missing. |
MANDATORY_ONEOF_ATTR_MISSING | Error thrown when either the data-video or data-playlist attributes are missing. |
IMPLIED_LAYOUT_INVALID | Error thrown when implied layout is set to CONTAINER ; this layout type isn't supported. |
SPECIFIED_LAYOUT_INVALID | Error thrown when specified layout is set to CONTAINER ; this layout type isn't supported. |
INVALID_PROPERTY_VALUE_IN_ATTR_VALUE | Error thrown when invalid value is given for attributes height or width . For example, height=auto triggers this error for all supported layout types, with the exception of NODISPLAY . |
The width
and height
attributes determine the aspect ratio of the player embedded in responsive layouts.
Examples:
<amp-brid-player
data-partner="264"
data-player="4144"
data-video="13663"
layout="responsive"
width="480" height="270">
</amp-brid-player>
data-partner
The Brid.tv partner id.
data-player
The Brid.tv player id. Specific to every partner.
data-video
The Brid.tv video ID.
data-playlist
The Brid.tv playlist ID. Embed must either have video or playlist attribute.