File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed
dotcom-rendering/src/components Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -964,6 +964,10 @@ export const Card = ({
964964 < LoopVideo
965965 // sources={media.mainMedia.sources}
966966 sources = { [
967+ // {
968+ // src: "https://uploads.guimcode.co.uk/2025/10/07/Andy_test_6_oct--9d8d52da-da51-4ca0-9e04-ae6868c9afba-3.1.m3u8",
969+ // mimeType: "application/vnd.apple.mpegurl"
970+ // },
967971 {
968972 src : 'https://uploads.guimcode.co.uk/2025/10/07/Andy_test_6_oct--9d8d52da-da51-4ca0-9e04-ae6868c9afba-3.0.mp4' ,
969973 mimeType : 'video/mp4' ,
Original file line number Diff line number Diff line change @@ -368,14 +368,11 @@ export const LoopVideo = ({
368368 enableSubs ( ) ;
369369 video . addEventListener ( 'loadeddata' , enableSubs ) ;
370370 // Some browsers fire this when the track becomes available
371- ( video . textTracks as any ) ? .addEventListener ?.( 'addtrack' , enableSubs ) ;
371+ video . textTracks . addEventListener ?.( 'addtrack' , enableSubs ) ;
372372
373373 return ( ) => {
374374 video . removeEventListener ( 'loadeddata' , enableSubs ) ;
375- ( video . textTracks as any ) ?. removeEventListener ?.(
376- 'addtrack' ,
377- enableSubs ,
378- ) ;
375+ video . textTracks . removeEventListener ?.( 'addtrack' , enableSubs ) ;
379376 } ;
380377 } , [ subtitleSource ] ) ;
381378
Original file line number Diff line number Diff line change @@ -35,7 +35,6 @@ const videoStyles = (
3535 object- fit: cover;
3636
3737 ::cue {
38- background-color : ${ palette ( '--loop-video-subtitle-background' ) } ;
3938 color: ${ palette ( '--loop-video-subtitle-text' ) } ;
4039
4140 ${ subtitleSize === 'small' && textSans15 } ;
You can’t perform that action at this time.
0 commit comments