@@ -34,6 +34,8 @@ type Props = {
3434 collectionId : number ;
3535 /** Feature flag for the labs redesign work */
3636 showLabsRedesign ?: boolean ;
37+ /** Feature flag for the enabling CORS loading on looping video */
38+ enableLoopVideoCORS ?: boolean ;
3739} ;
3840
3941type RowLayout = 'oneCardHalfWidth' | 'oneCardFullWidth' | 'twoCard' ;
@@ -248,6 +250,8 @@ type SplashCardLayoutProps = {
248250 collectionId : number ;
249251 /** Feature flag for the labs redesign work */
250252 showLabsRedesign ?: boolean ;
253+ /** Feature flag for the enabling CORS loading on looping video */
254+ enableLoopVideoCORS ?: boolean ;
251255} ;
252256
253257const SplashCardLayout = ( {
@@ -261,6 +265,7 @@ const SplashCardLayout = ({
261265 containerLevel,
262266 collectionId,
263267 showLabsRedesign,
268+ enableLoopVideoCORS,
264269} : SplashCardLayoutProps ) => {
265270 const card = cards [ 0 ] ;
266271 if ( ! card ) return null ;
@@ -344,6 +349,7 @@ const SplashCardLayout = ({
344349 showKickerImage = { card . format . design === ArticleDesign . Audio }
345350 headlinePosition = { card . showLivePlayable ? 'outer' : 'inner' }
346351 showLabsRedesign = { showLabsRedesign }
352+ enableLoopVideoCORS = { enableLoopVideoCORS }
347353 />
348354 </ LI >
349355 </ UL >
@@ -408,6 +414,8 @@ type FullWidthCardLayoutProps = {
408414 collectionId : number ;
409415 /** Feature flag for the labs redesign work */
410416 showLabsRedesign ?: boolean ;
417+ /** Feature flag for the enabling CORS loading on looping video */
418+ enableLoopVideoCORS ?: boolean ;
411419} ;
412420
413421const FullWidthCardLayout = ( {
@@ -422,6 +430,7 @@ const FullWidthCardLayout = ({
422430 containerLevel,
423431 collectionId,
424432 showLabsRedesign,
433+ enableLoopVideoCORS,
425434} : FullWidthCardLayoutProps ) => {
426435 const card = cards [ 0 ] ;
427436 if ( ! card ) return null ;
@@ -496,6 +505,7 @@ const FullWidthCardLayout = ({
496505 canPlayInline = { true }
497506 showKickerImage = { card . format . design === ArticleDesign . Audio }
498507 showLabsRedesign = { showLabsRedesign }
508+ enableLoopVideoCORS = { enableLoopVideoCORS }
499509 />
500510 </ LI >
501511 </ UL >
@@ -515,6 +525,8 @@ type HalfWidthCardLayoutProps = {
515525 containerLevel : DCRContainerLevel ;
516526 /** Feature flag for the labs redesign work */
517527 showLabsRedesign ?: boolean ;
528+ /** Feature flag for the enabling CORS loading on looping video */
529+ enableLoopVideoCORS ?: boolean ;
518530} ;
519531
520532const HalfWidthCardLayout = ( {
@@ -529,6 +541,7 @@ const HalfWidthCardLayout = ({
529541 isLastRow,
530542 containerLevel,
531543 showLabsRedesign,
544+ enableLoopVideoCORS,
532545} : HalfWidthCardLayoutProps ) => {
533546 if ( cards . length === 0 ) return null ;
534547
@@ -584,6 +597,7 @@ const HalfWidthCardLayout = ({
584597 headlineSizes = { undefined }
585598 canPlayInline = { false }
586599 showLabsRedesign = { showLabsRedesign }
600+ enableLoopVideoCORS = { enableLoopVideoCORS }
587601 />
588602 </ LI >
589603 ) ;
@@ -602,6 +616,7 @@ export const FlexibleGeneral = ({
602616 containerLevel = 'Primary' ,
603617 collectionId,
604618 showLabsRedesign,
619+ enableLoopVideoCORS,
605620} : Props ) => {
606621 const splash = [ ...groupedTrails . splash ] . slice ( 0 , 1 ) . map ( ( snap ) => ( {
607622 ...snap ,
@@ -631,6 +646,7 @@ export const FlexibleGeneral = ({
631646 containerLevel = { containerLevel }
632647 collectionId = { collectionId }
633648 showLabsRedesign = { showLabsRedesign }
649+ enableLoopVideoCORS = { enableLoopVideoCORS }
634650 />
635651 ) }
636652 { groupedCards . map ( ( row , i ) => {
@@ -650,6 +666,7 @@ export const FlexibleGeneral = ({
650666 containerLevel = { containerLevel }
651667 collectionId = { collectionId }
652668 showLabsRedesign = { showLabsRedesign }
669+ enableLoopVideoCORS = { enableLoopVideoCORS }
653670 />
654671 ) ;
655672
@@ -670,6 +687,7 @@ export const FlexibleGeneral = ({
670687 isLastRow = { i === groupedCards . length - 1 }
671688 containerLevel = { containerLevel }
672689 showLabsRedesign = { showLabsRedesign }
690+ enableLoopVideoCORS = { enableLoopVideoCORS }
673691 />
674692 ) ;
675693 }
0 commit comments