Skip to content

Commit a30d6ab

Browse files
committed
WORKING COMMIT - testing cors on code
1 parent cf15bf9 commit a30d6ab

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

dotcom-rendering/src/components/Card/Card.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff 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',

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

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff 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

dotcom-rendering/src/components/LoopVideoPlayer.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff 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};

0 commit comments

Comments
 (0)