diff --git a/src/config.ts b/src/config.ts index 840cb7116..c558bcb3c 100644 --- a/src/config.ts +++ b/src/config.ts @@ -14,3 +14,6 @@ export const ADYEN_LIVE_CLIENT_KEY = 'live_BQDOFBYTGZB3XKF62GBYSLPUJ4YW2TPL'; // how often the live channel schedule is refetched in ms export const LIVE_CHANNELS_REFETCH_INTERVAL = 15 * 60_000; + +// OTT shared player +export const DEFAULT_PLAYER_ID: string = 'M4qoGvUk'; diff --git a/src/containers/PlayerContainer/PlayerContainer.tsx b/src/containers/PlayerContainer/PlayerContainer.tsx index 7a8df3739..c3a7710ed 100644 --- a/src/containers/PlayerContainer/PlayerContainer.tsx +++ b/src/containers/PlayerContainer/PlayerContainer.tsx @@ -8,7 +8,7 @@ import { useConfigStore } from '#src/stores/ConfigStore'; import Player from '#components/Player/Player'; import type { JWPlayer } from '#types/jwplayer'; import { useWatchHistoryStore } from '#src/stores/WatchHistoryStore'; -import { VideoProgressMinMax } from '#src/config'; +import { DEFAULT_PLAYER_ID, VideoProgressMinMax } from '#src/config'; type Props = { item: PlaylistItem; @@ -40,7 +40,7 @@ const PlayerContainer: React.FC = ({ liveStartDateTime, autostart, }: Props) => { - const { player, features } = useConfigStore((s) => s.config); + const { features } = useConfigStore((s) => s.config); const continueWatchingList = features?.continueWatchingList; const watchHistoryEnabled = !!continueWatchingList; @@ -116,7 +116,7 @@ const PlayerContainer: React.FC = ({ return (