AMP
  • 网站

amp-springboard-player

简介

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

设置

在头部导入 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 上编辑示例