amp-dailymotion
Introduction
The amp-dailymotion
component allows to embed daily motion videos into your AMP HTML files.
Setup
Import the amp-dailymotion
component.
<script async custom-element="amp-dailymotion" src="https://cdn.ampproject.org/v0/amp-dailymotion-0.1.js"></script>
Basic Usage
You can find the Dailymotion video id in the video page URL. Change the play button hover color with data-ui-highlight
.
<amp-dailymotion data-videoid="x3rdtfy"
layout="responsive"
data-ui-highlight="FF4081"
width="480"
height="270">
</amp-dailymotion>
Plain Embeds
Hide the logo and titles via amp-ui-logo
and data-info
.
<amp-dailymotion data-videoid="x3rdtfy"
layout="responsive"
data-ui-logo="false"
data-info="false"
width="480"
height="270">
</amp-dailymotion>
さらに説明が必要ですか?
このページの説明でご質問のすべてを解消できない場合は、あなたの実際の使用事例について他の AMP ユーザーに問い合わせて話し合ってください。
Stack Overflow にアクセスする 説明されていない機能ですか?AMP プロジェクトでは皆さんの参加と貢献を強くお勧めしています!当社はオープンソースコミュニティに継続的にご参加いただくことを希望しますが、特に熱心に取り組んでいる問題があれば1回限りの貢献でも歓迎します。
GitHub でサンプルを編集する-
Written by @sebastianbenz