{
isVisible = true
videoElement.play()
}}
on:inview_leave={() => {
isVisible = false
videoElement.pause()
}}
on:inview_leave={() => (isVisible = false)}
on:mouseenter={() => (isShowingControls = true)}
on:mouseleave={() => (isShowingControls = false)}
>
{#if isPaused}
{/if}