Skip to content
This repository has been archived by the owner on Sep 10, 2022. It is now read-only.

Latest commit

 

History

History
70 lines (55 loc) · 2.21 KB

amp-reach-player.md

File metadata and controls

70 lines (55 loc) · 2.21 KB

amp-reach-player

Description An amp-reach-player component displays the Reach Player configured in the Beachfront Reach platform.
Availability Beta
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 reach-player.amp.html

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>

Attributes

data-embed-id

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

Validation

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