AMP

Important: this documentation is not applicable to your currently selected format stories!

amp-connatix-player

Displays a cloud-hosted Connatix Player.

Required Scripts

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

Example

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

Example:

<amp-connatix-player
  data-player-id="03ef71d8-0941-4bff-94f2-74ca3580b497"
  layout="responsive"
  width="16"
  height="9"
>
</amp-connatix-player>

Attributes

data-player-id Connatix player id. This can be found at the Video Players section in the Connatix management dashboard. (Required)
data-media-id Connatix media id. This represents the unique ID of any media in your Library. This can be found at the Library section in the Connatix management dashboard. (Optional)
common attributes This element includes common attributes extended to AMP components.

Validation

See amp-connatix-player rules in the AMP validator specification.

需要更多帮助?

您多次阅读的资料未能涵盖您的所有问题?也许其他人也这么觉得 在 Stack Overflow 上与他们取得联系。

前往 Stack Overflow
找到一个 bug 或者缺失某项功能?

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

前往 GitHub