Skip to content

Commit 5e3caba

Browse files
Looping video in article - initial work underway
1 parent 54b2612 commit 5e3caba

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

dotcom-rendering/src/components/LoopVideoInArticle.importable.tsx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import type { ArticleFormat } from '../lib/articleFormat';
33
import { Caption } from './Caption';
44
import type { Props as CardPictureProps } from './CardPicture';
55
import type { Source } from '../lib/video';
6+
import type { SubtitleSize } from './LoopVideoPlayer';
67

78
type LoopVideoInArticleProps = {
89
atomId: string;
@@ -20,6 +21,8 @@ type LoopVideoInArticleProps = {
2021
sources: Source[];
2122
uniqueId: string;
2223
width: number;
24+
subtitleSource?: string;
25+
subtitleSize: SubtitleSize;
2326
};
2427

2528
export const LoopVideoInArticle = ({
@@ -38,6 +41,8 @@ export const LoopVideoInArticle = ({
3841
sources,
3942
uniqueId,
4043
width = 500,
44+
subtitleSource,
45+
subtitleSize,
4146
}: LoopVideoInArticleProps) => {
4247
console.log('LVIAimp - atomId', atomId);
4348
return (
@@ -55,6 +60,8 @@ export const LoopVideoInArticle = ({
5560
fallbackImageAlt={fallbackImageAlt}
5661
fallbackImageAspectRatio={fallbackImageAspectRatio}
5762
linkTo={linkTo}
63+
subtitleSource={subtitleSource}
64+
subtitleSize={subtitleSize}
5865
/>
5966
{!!caption && (
6067
<Caption

0 commit comments

Comments
 (0)