File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
dotcom-rendering/src/components Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ import type { ArticleFormat } from '../lib/articleFormat';
33import { Caption } from './Caption' ;
44import type { Props as CardPictureProps } from './CardPicture' ;
55import type { Source } from '../lib/video' ;
6+ import type { SubtitleSize } from './LoopVideoPlayer' ;
67
78type 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
2528export 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
You can’t perform that action at this time.
0 commit comments