amp-story-captions
Description
The amp-story-captions component allows custom video or audio caption rendering. See https://github.com/ampproject/amphtml/issues/34016 for the design.
Required Scripts
<script async custom-element="amp-story-captions" src="https://cdn.ampproject.org/v0/amp-story-captions-0.1.js"></script>
Supported Layouts
The amp-story-captions
component allows custom video or audio caption rendering. See https://github.com/ampproject/amphtml/issues/34016 for the design.
Note that container
layout in this component is different to all other components because the HTML tree does not determine the size. Instead, the text height of the dynamically loaded captions determine the size. Thus it may cause CLS issue if the caption content changes while playing the video or audio.
您已多次阅读本文档,但它仍未能涵盖您的所有问题?也许其他人也这么觉得:在 Stack Overflow 上与他们联系。
前往 Stack Overflow 发现错误或缺少功能?AMP 项目强烈鼓励您参与并做出贡献!我们希望您能成为我们开放源代码社区的持续参与者,但我们也欢迎您对所热衷问题做出一次性贡献。
前往 GitHub