AMP
  • 网站

amp-springboard-player

简介

使用 amp-springboard-player 组件将 Springboard 视频平台托管的视频嵌入到您的 AMP HTML 文件中。

设置

在标头中导入 amp-springboard-player 组件。

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

基本用法

通过 data-site-iddata-domaindata-player-iddata-content-id 属性嵌入 Springboard 视频平台托管的视频。 data-mode 属性用于确定是单个视频还是播放列表。 如果是播放列表,则 data-items 属性指定播放列表中的项目数。 我们建议对视频使用响应式布局。

<amp-springboard-player data-site-id="261" data-mode="video" data-content-id="1578473" data-player-id="test401" data-domain="test.com" data-items="10" layout="responsive" width="480" height="270">
</amp-springboard-player>
需要进一步解释吗?

如果本页上的解释没有涵盖您所有的问题,请随时联系其他 AMP 用户,讨论您的具体用例。

转到 Stack Overflow
未解释的功能?

AMP 项目强烈鼓励您的参与和贡献! 我们希望您成为我们开源社区的长期参与者,但我们也欢迎您为自己特别感兴趣的问题做出一次性贡献。

在 GitHub 上编辑示例