Skip to content

Commit

Permalink
Merge branch 'latest' into WSTEAMA-1382-remove-media-player-component…
Browse files Browse the repository at this point in the history
…-and-add-mediaLoaders
  • Loading branch information
Nabeel1276 authored Sep 27, 2024
2 parents 436a530 + 71a5aca commit f731f68
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 17 deletions.
16 changes: 1 addition & 15 deletions src/app/pages/OnDemandTvPage/OnDemandTvPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,8 @@ import ComscoreAnalytics from '#containers/ComscoreAnalytics';
import Grid, { GelPageGrid } from '#components/Grid';
import StyledTvHeadingContainer from '#containers/OnDemandHeading/StyledTvHeadingContainer';
import OnDemandParagraphContainer from '#containers/OnDemandParagraph';
import getEmbedUrl, {
makeAbsolute,
} from '#lib/utilities/getUrlHelpers/getEmbedUrl';
import RecentVideoEpisodes from '#containers/EpisodeList/RecentVideoEpisodes';
import FooterTimestamp from '#containers/OnDemandFooterTimestamp';
import useLocation from '#hooks/useLocation';
import { PageTypes } from '#app/models/types/global';
import { ContentType } from '#app/components/ChartbeatAnalytics/types';
import MediaLoader from '#app/components/MediaLoader';
Expand Down Expand Up @@ -88,9 +84,8 @@ const OnDemandTvPage = ({
contentType,
} = pageData;

const { lang, timezone, datetimeLocale, service, brandName } =
const { timezone, datetimeLocale, service, brandName } =
useContext(ServiceContext);
const location = useLocation();

const formattedTimestamp = formatUnixTimestamp({
timestamp: releaseDateTimeStamp,
Expand All @@ -100,14 +95,6 @@ const OnDemandTvPage = ({
isRelative: false,
});

const mediaId = `${service}/${masterBrand}/${episodeId}/${lang}`;

const embedUrl = getEmbedUrl({
mediaId,
type: 'media',
queryString: location.search,
});

const hasRecentEpisodes = recentEpisodes && Boolean(recentEpisodes.length);
const metadataTitle = episodeTitle
? `${brandTitle} - ${episodeTitle} - ${brandName}`
Expand Down Expand Up @@ -153,7 +140,6 @@ const OnDemandTvPage = ({
thumbnailUrl: thumbnailImageUrl,
duration: durationISO8601,
uploadDate: new Date(releaseDateTimeStamp).toISOString(),
embedURL: makeAbsolute(embedUrl),
},
]
: []
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -497,7 +497,6 @@ exports[`Canonical On Demand T V Page SEO Linked data should match text 1`] = `
"@type": "VideoObject",
"description": "Sashen Hausa na BBC ya fara gabatar da shirin talabijin a ranakun Litinin zuwa Juma'a na kowane mako.",
"duration": "PT10M",
"embedURL": "https://www.test.bbc.com/ws/av-embeds/media/hausa/bbc_hausa_tv/w172xcg0kg6vph8/ha?morph_env=live",
"name": "Labaran Talabijin",
"thumbnailUrl": "https://ichef.bbci.co.uk/images/ic/1024x576/p08b216l.png",
"uploadDate": "2020-11-23T00:00:00.000Z",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,6 @@ exports[`Canonical On Demand T V Page SEO Linked data should match text 1`] = `
"@type": "VideoObject",
"description": "نړۍ دا وخت، د نړۍ او سیمې وروستۍ پرمختیاوې یادوي",
"duration": "PT28M",
"embedURL": "https://www.test.bbc.com/ws/av-embeds/media/pashto/bbc_pashto_tv/w172zmsln64zg23/ps?morph_env=live",
"name": " د بي بي سي خبرونه ",
"thumbnailUrl": "https://ichef.bbci.co.uk/images/ic/1024x576/p08b23c8.png",
"uploadDate": "2024-09-17T00:00:00.000Z",
Expand Down

0 comments on commit f731f68

Please sign in to comment.