Skip to content

Latest commit

 

History

History
103 lines (80 loc) · 3.8 KB

amp-o2-player.md

File metadata and controls

103 lines (80 loc) · 3.8 KB

amp-o2-player

Description An amp-o2-player component displays the AOL O2Player.
Availability Stable
Required Script <script async custom-element="amp-o2-player" src="https://cdn.ampproject.org/v0/amp-o2-player-0.1.js"></script>
Examples amp-o2-player.html
o2-player.amp.html

Example

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

Example:

<amp-o2-player
    data-pid="12345"
    data-bcid="5678"
    data-bid="54321"
    data-vid="98765"
    layout="responsive"
    width="480" height="270">
</amp-o2-player>

Attributes

data-pid

The O2Player player id.

data-bcid

The O2Player bcid.

data-bid

The O2Player bid.

data-vid

The O2Player video id.

data-macros

The O2Player macros.

Validation errors

The following lists validation errors specific to the amp-o2-player tag (see also amp-o2-player in the AMP validator specification):

Validation Error Description
The 'example1' tag is missing or incorrect, but required by 'example2'. Error thrown when required amp-o2-player extension .js script tag is missing or incorrect.
The implied layout 'example1' is not supported by tag 'example2'. Error thrown when implied layout is set to CONTAINER; this layout type isn't supported.
The specified layout 'example1' is not supported by tag 'example2'. Error thrown when specified layout is set to CONTAINER; this layout type isn't supported.
The property 'example1' in attribute 'example2' in tag 'example3' is set to 'example4', which is invalid. 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.