amp-minute-media-player
Description
Displays a Minute Media player.
Required Scripts
<script async custom-element="amp-minute-media-player" src="https://cdn.ampproject.org/v0/amp-minute-media-player-0.1.js"></script>
Supported Layouts
Example
Example with RESPONSIVE layout - width and height attributes determine the aspect ratio of the player embedded.
<amp-minute-media-player data-content-type="curated" data-content-id="fSkmeWKF" width="500" height="334" layout="responsive" autoplay > </amp-minute-media-player>
Example with FIXED layout - fixed width and height.
<amp-minute-media-player data-content-type="semantic" data-scanned-element-type="tag" data-scanned-element="post-body" layout="fixed" width="500" height="334" </amp-minute-media-player>
Attributes
data-content-type | The Minute Media player type. The options are 'specific' or 'semantic' . Choose 'specific' in order to play specific content (insert the content id in the data-content-id attribute). By choosing 'semantic' the playlist will be automatically created and match the content of the article to the most relevant video in real time. |
data-content-id | The Minute Media player id. This data is required only if you choose playing specific content (in the data-content-type). |
data-scanned-element-type | Choose the defining characteristic (class-name, tag-name or id) when pairing content with the video. This data is reflected only if you choose playing semantic content (in the data-content-type). |
data-scanned-element | Choose the specific element accoring to the choosen scanned element type to be considered when pairing content with the video. This data is reflected only if you choose playing semantic content (in the data-content-type). |
data-tags | Tags that taken into consideration when the decision which video content to play is made (in 'semantic' content type). This data is reflected only if you choose playing 'semantic' content (in the data-content-type). |
data-minimum-date-factor | This data reflects the last number of days the engine should take into consideration when searching for a matching video. Older videos will receive a lower score This data is reflected only if you choose playing 'semantic' content (in the data-content-type). |
data-scoped-keywords | This data is responsible to return only videos with the specified tags in the matching results. This data is reflected only if you choose playing 'semantic' content (in the data-content-type). |
autoplay | If this attribute is present, and the browser supports autoplay:
|
dock | If this attribute is present and the video is playing manually, the video will be "minimized" and fixed to a corner when the user scrolls out of the video component's visual area.
<script async custom-element="amp-video-docking" src="https://cdn.ampproject.org/v0/amp-video-docking-0.1.js"></script>
|
Validation
See amp-minute-media-player rules in the AMP validator specification.
이 문서를 수십 번 읽었음에도 여전히 궁금한 점이 남아 있나요? 다른 개발자들도 같은 심정일지 모릅니다. Stack Overflow에서 소통해 보세요.
Stack Overflow로 이동 버그나 누락된 기능을 발견하셨나요?AMP 프로젝트는 여러분의 참여와 기여를 적극 환영합니다! 오픈 소스 커뮤니티를 통해 지속적으로 활동해 주셔도 좋지만 관심 있는 주제에 한 번만 기여하셔도 큰 도움이 됩니다.
GitHub로 이동하기