AMP

amp-slikeplayer

Description

Displays a cloud-hosted Slike Player.

 

Required Scripts

<script async custom-element="amp-slikeplayer" src="https://cdn.ampproject.org/v0/amp-slikeplayer-0.1.js"></script>

Example

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

Example:

<amp-slikeplayer required-attribute>
  data-apikey="33502051"
  data-videoid="1281471"
  layout="responsive"
  height: 180
  width: 320
>
</amp-slikeplayer>

Attributes

data-apikey The Slike apikey id. This attribute is mandatory.
data-videoid The Slike video content id - videoid. This attribute is mandatory
data-config It is the player configuration passed as string and enentually capturen as query parameter. Few examples autoplay=true, skipad=true etc
data-iframe-src The iframe source can be overriden by users own source. The default template is binded the component
common attributes This element includes common attributes extended to AMP components.

Validation

See amp-slikeplayer rules in the AMP validator specification.

需要更多帮助?

您已多次阅读本文档,但它仍未能涵盖您的所有问题?也许其他人也这么觉得:在 Stack Overflow 上与他们联系。

前往 Stack Overflow
发现错误或缺少功能?

AMP 项目强烈鼓励您参与并做出贡献!我们希望您能成为我们开放源代码社区的持续参与者,但我们也欢迎您对所热衷问题做出一次性贡献。

前往 GitHub