adds autoplay option

This commit is contained in:
Ollie Taylor
2023-02-24 14:01:43 +00:00
parent 20fc307099
commit d7d81ce732
4 changed files with 18 additions and 5 deletions
+2 -1
View File
@@ -1,5 +1,6 @@
<script lang="ts">
import {
audio_autoplay,
audio_current_time,
audio_element,
audio_metadata,
@@ -22,7 +23,7 @@
<audio
bind:this={element}
{src}
autoplay={false}
autoplay={$audio_autoplay}
bind:currentTime
bind:muted
preload="metadata"