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

@@ -22,6 +22,11 @@
height: 100%;
align-content: end;
padding-bottom: var(--Space-x15);
pointer-events: none;
& > * {
pointer-events: auto;
}
}
}

View File

@@ -50,7 +50,7 @@ export async function CollectionPage() {
<div className={styles.videoWrapper}>
<HeroVideo
className={styles.heroVideo}
src={hero_video.src}
sources={hero_video.sources}
focalPoint={hero_video.focalPoint}
captions={hero_video.captions}
isFullWidth

View File

@@ -84,7 +84,7 @@ export async function ContentPage() {
{hero_video ? (
<HeroVideo
className={styles.hero}
src={hero_video.src}
sources={hero_video.sources}
focalPoint={hero_video.focalPoint}
captions={hero_video.captions}
/>