-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
✨ [amp-story-captions] Support container layout in amp-story-captions…
… component (#37120) * Support container layout to amp-story-captions. * Update Layout to Layout_Enum after merge with main. * Add document about the caveat to use container layout in amp-story-captions component
- Loading branch information
Showing
6 changed files
with
53 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
WEBVTT | ||
00:00:00.000 --> 01:00:00.000 align:start position:0% | ||
at<00:00:00.290><c> the</c><00:00:00.470><c> left</c><00:00:00.710><c> we</c><00:00:00.889><c> can</c><00:00:01.190><c> see</c><00:00:01.250><c> though</c><00:00:02.210><c> we</c><00:00:02.450><c> can</c><00:00:02.660><c> see</c> | ||
the<00:00:03.080><c> at</c><00:00:03.800><c> the</c><00:00:04.040><c> right</c><00:00:04.250><c> we</c><00:00:04.610><c> can</c><00:00:04.790><c> see</c><00:00:04.850><c> the</c><00:00:05.150><c> hats</c> | ||
knowledge<00:00:06.830><c> and</c><00:00:07.130><c> everything</c><00:00:07.880><c> is</c><00:00:08.060><c> safe</c> | ||
perfectly<00:00:08.170><c> safe</c><00:00:08.500><c> emo</c><00:00:09.779><c> emo</c> | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# amp-story-captions | ||
|
||
The `amp-story-captions` component allows custom video or audio [caption](https://developer.mozilla.org/en-US/docs/Web/Guide/Audio_and_video_delivery/Adding_captions_and_subtitles_to_HTML5_video) 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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters