Fix/BOOK-240 video fixes

* fix(BOOK-240): Added support for multiple sources and fixed issue with play/pause on mobile

* fix(BOOK-240): Pausing hero video when scrolling out of view


Approved-by: Christel Westerberg
This commit is contained in:
Erik Tiekstra
2025-12-16 09:09:17 +00:00
parent 713ca6562e
commit bf7a2ac2fe
10 changed files with 121 additions and 118 deletions

View File

@@ -18,7 +18,7 @@ interface QuoteCardProps {
type VideoWithCardProps = VariantProps<typeof variants> &
(TextCardProps | QuoteCardProps) & {
video: Pick<VideoPlayerProps, 'src' | 'captions' | 'focalPoint'>
video: Pick<VideoPlayerProps, 'sources' | 'captions' | 'focalPoint'>
}
export function VideoWithCard(props: VideoWithCardProps) {