Skip to content

Latest commit

 

History

History
73 lines (56 loc) · 2.31 KB

amp-reach-player.md

File metadata and controls

73 lines (56 loc) · 2.31 KB

amp-reach-player

Description Displays the Reach Player configured in the Beachfront Reach platform.
Availability Stable
Required Script <script async custom-element="amp-reach-player" src="https://cdn.ampproject.org/v0/amp-reach-player-0.1.js"></script>
Supported Layouts fill, fixed, fixed-height, flex-item, responsive
Examples Annotated code example for amp-reach-player

Example

The width and height attributes determine the aspect ratio of the player embedded in responsive layouts.

Example:

<amp-reach-player
      data-embed-id="default"
      layout="responsive"
      width="560"
      height="315">
</amp-reach-player>

Attributes

data-embed-id

The Reach player embed id found in the "players" section or in the generated embed itself.

common attributes

This element includes common attributes extended to AMP components.

Validation

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