# Google AMP

The nexxPLAY Embed Code System works automatically also in a Google AMP Environment. Nothing has to be changed compared to the default Way of Embedding.

### AMP Plugin

3Q offers an official AMP Plugin for nexxPLAY, which handles all available Settings automatically.

You can find all Details of this Plugin here:

{% embed url="<https://www.ampproject.org/docs/reference/components/amp-nexxtv-player>" %}

A basic Integration would look like this:

```markup
<amp-nexxtv-player
 data-mediaid="ABCDEFGHIJKL"
 data-domain="999"
 data-streamtype="video"
 data-mode="static"
 data-disable-ads=”1”
 layout="responsive"
 width="480" 
 height="270"
 ></amp-nexxtv-player>
```

### Attritubes

| **data-mediaid (required)**                 | Represents the ID of the media you want to play.                                                                                                                                                                                        |
| ------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **data-client OR data-domain-id(required)** | Your domain ID.                                                                                                                                                                                                                         |
| **data-streamtype (optional)**              | <p>Indicates the media streaming type, which can be one of the following:</p><ul><li>video (default)</li><li>audio</li><li>playlist</li><li>audioalbum</li><li>live</li><li>radio</li><li>set</li><li>rack</li><li>collection</li></ul> |
| **data-mode (optional)**                    | Indicates the data mode, which can be `static` (default) or `api`.                                                                                                                                                                      |
| **data-disable-ads (optional)**             | Ads are enabled by default. Set value to 1 to disable.                                                                                                                                                                                  |
| **data-streaming-filter (optional)**        | Set streaming filter e.g. "nxp-bitrate-0750" for max 750kbit max bitrate.                                                                                                                                                               |
| **data-exit-mode (optional)**               | <p>Defines player exit screen</p><ul><li>replay</li><li>loop</li><li>load</li></ul>                                                                                                                                                     |
| **common attributes**                       | This element includes [common attributes](https://amp.dev/documentation/guides-and-tutorials/learn/common_attributes?format=websites) extended to AMP components.                                                                       |

### Custom AMP iFrame

You do not have to use the Plugin, you can also use your own iFrame Solution, if necessary. In those Cases though, it will help to indicate to the Player, that this iFrame is displayed in an AMP Environment:

{% hint style="info" %}
Although not necessary in all Situations, adding the "platform=amp" Parameter will help the Player to distinguish Platforms and optimize Reporting.&#x20;
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://play.docs.nexx.cloud/platform-plugins/google-amp.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
