From ea3397a026e9ccf011421a643fc91b9ef514ed19 Mon Sep 17 00:00:00 2001 From: tom-heidenreich Date: Tue, 21 Jan 2025 13:59:31 +0100 Subject: [PATCH] feat: pass media item as custom data to chromecast --- components/PlayButton.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/PlayButton.tsx b/components/PlayButton.tsx index 0df2a4f0..48ec30af 100644 --- a/components/PlayButton.tsx +++ b/components/PlayButton.tsx @@ -146,6 +146,7 @@ export const PlayButton: React.FC = ({ contentId: item.Id, contentUrl: data?.url, contentType: "video/mp4", + customData: item, metadata: item.Type === "Episode" ? { @@ -204,7 +205,7 @@ export const PlayButton: React.FC = ({ if (isOpeningCurrentlyPlayingMedia) { return; } - router.push('/player/google-cast-player') + router.push("/player/google-cast-player"); }); } });