Skip to content

Latest commit

 

History

History
82 lines (60 loc) · 2.47 KB

amp-brid-player.md

File metadata and controls

82 lines (60 loc) · 2.47 KB

amp-brid-player

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>
Supported Layouts fill, fixed, fixed-height, flex-item, nodisplay, responsive
Examples Annotated code example for amp-brid-player

Example

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>

Attributes

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.

common attributes

This element includes common attributes extended to AMP components.

Validation

See amp-brid-player rules in the AMP validator specification.