Play About Step video only when visible

This commit is contained in:
2022-08-29 19:38:31 +02:00
parent 5b53b7dc52
commit 892fc105c0
2 changed files with 32 additions and 9 deletions

View File

@@ -34,7 +34,7 @@
alt={image.title}
/>
{:else if video}
<video autoplay muted loop playsinline allow="autoplay">
<video muted loop playsinline allow="autoplay">
<source type="video/mp4" src={getAssetUrlKey(video.mp4, 'step')} />
<source type="video/webm" src={getAssetUrlKey(video.webm, 'step')} />
<track kind="captions" />