@@ -31,33 +31,35 @@ export const LoopVideoInArticle = ({
3131
3232 return (
3333 < Island priority = "critical" defer = { { until : 'visible' } } >
34- < SelfHostedVideo
35- atomId = { element . id }
36- fallbackImage = { posterImageUrl }
37- fallbackImageAlt = { caption }
38- fallbackImageAspectRatio = {
39- ( firstVideoAsset ?. aspectRatio ?? '5:4' ) as FEAspectRatio
40- }
41- fallbackImageLoading = "lazy"
42- fallbackImageSize = "small"
43- height = { firstVideoAsset ?. dimensions ?. height ?? 400 }
44- linkTo = "Article-embed-MediaAtomBlockElement"
45- posterImage = { posterImageUrl }
46- sources = { convertAssetsToVideoSources ( element . assets ) }
47- subtitleSize = "medium"
48- subtitleSource = { getSubtitleAsset ( element . assets ) }
49- videoStyle = "Loop"
50- uniqueId = { element . id }
51- width = { firstVideoAsset ?. dimensions ?. width ?? 500 }
52- />
53- { ! ! caption && (
54- < Caption
55- captionText = { caption }
56- format = { format }
57- isMainMedia = { isMainMedia }
58- mediaType = "SelfHostedVideo"
34+ < div >
35+ < SelfHostedVideo
36+ atomId = { element . id }
37+ fallbackImage = { posterImageUrl }
38+ fallbackImageAlt = { caption }
39+ fallbackImageAspectRatio = {
40+ ( firstVideoAsset ?. aspectRatio ?? '5:4' ) as FEAspectRatio
41+ }
42+ fallbackImageLoading = "lazy"
43+ fallbackImageSize = "small"
44+ height = { firstVideoAsset ?. dimensions ?. height ?? 400 }
45+ linkTo = "Article-embed-MediaAtomBlockElement"
46+ posterImage = { posterImageUrl }
47+ sources = { convertAssetsToVideoSources ( element . assets ) }
48+ subtitleSize = "medium"
49+ subtitleSource = { getSubtitleAsset ( element . assets ) }
50+ videoStyle = "Loop"
51+ uniqueId = { element . id }
52+ width = { firstVideoAsset ?. dimensions ?. width ?? 500 }
5953 />
60- ) }
54+ { ! ! caption && (
55+ < Caption
56+ captionText = { caption }
57+ format = { format }
58+ isMainMedia = { isMainMedia }
59+ mediaType = "SelfHostedVideo"
60+ />
61+ ) }
62+ </ div >
6163 </ Island >
6264 ) ;
6365} ;
0 commit comments