Web Player
Embed a player on an AMP page
See how you can embed the player on an AMP page
Our player can be used on Google AMP pages with the <amp-target-video-player> component. It is provided by the amp-brid-player extension; the older element name <amp-brid-player> still works, with the same attributes.
To load the player on an AMP page, include the following script in the page’s <head>. The extension is still named amp-brid-player, so keep that name in the script tag:
<script async custom-element="amp-brid-player" src="https://cdn.ampproject.org/v0/amp-brid-player-0.1.js"></script><amp-target-video-player
data-partner="PARTNER_ID"
data-player="PLAYER_ID"
data-video="VIDEO_ID"
layout="responsive"
width="480"
height="270"
>
</amp-target-video-player>Parameters supported in the AMP embed code:
Parameter name | Description |
|---|---|
| ID of the partner (website) |
| ID of the player used |
| ID of the video used |
| if playlist is used instead of the video, you should supply playlist ID |
| if a carousel is used, you should supply the carousel ID |
| if outstream unit is used, you should supply ID of the outstream unit |
| parameter used to specify type of dynamic playlist, e.g. latest, tag |
data-partner and data-player are required, plus one of data-video, data-playlist, data-carousel or data-outstream.
Sticky player on AMP
You can use sticky player on AMP pages by adding the dock parameter into the embed code.
<amp-target-video-player
data-partner="PARTNER_ID"
data-player="PLAYER_ID"
data-video="VIDEO_ID"
layout="responsive"
width="480"
height="270"
dock
>
</amp-target-video-player>❗ Important
Requires the
amp-video-dockingextension — add<script async custom-element="amp-video-docking" src="https://cdn.ampproject.org/v0/amp-video-docking-0.1.js"></script>to the page’s<head>. If the attribute is present and the video is playing manually, the video is “minimized” and fixed to a corner or an element when the user scrolls out of the video component’s visual area.To read more about the docking extension, see the amp-video-docking component on amp.dev.