amp-3q-player
Description | Embeds Videos from 3Q SDN. |
Availability | In Development |
Required Script | <script async custom-element="amp-3q-player" src="https://cdn.ampproject.org/v0/amp-3q-player-0.1.js"></script> |
Supported Layouts | fill, fixed, flex-item, responsive |
Example
<amp-3q-player
data-id="c8dbe7f4-7f7f-11e6-a407-0cc47a188158"
width="100%" height="100%"></amp-3q-player>
Attributes
data-id (required)
sdnPlayoutId from 3Q SDN
autoplay
If this attribute is present, and the browser supports autoplay:
- the video is automatically muted before autoplay starts
- when the video is scrolled out of view, the video is paused
- when the video is scrolled into view, the video resumes playback
- when the user taps the video, the video is unmuted
- if the user has interacted with the video (e.g., mutes/unmutes, pauses/resumes, etc.), and the video is scrolled in or out of view, the state of the video remains as how the user left it. For example, if the user pauses the video, then scrolls the video out of view and returns to the video, the video is still paused.
Validation
See amp-3q-player rules in the AMP validator specification.