feat: pass media item as custom data to chromecast

This commit is contained in:
tom-heidenreich
2025-01-21 13:59:31 +01:00
committed by Uruk
parent b922b561f5
commit ea3397a026

View File

@@ -146,6 +146,7 @@ export const PlayButton: React.FC<Props> = ({
contentId: item.Id,
contentUrl: data?.url,
contentType: "video/mp4",
customData: item,
metadata:
item.Type === "Episode"
? {
@@ -204,7 +205,7 @@ export const PlayButton: React.FC<Props> = ({
if (isOpeningCurrentlyPlayingMedia) {
return;
}
router.push('/player/google-cast-player')
router.push("/player/google-cast-player");
});
}
});