Skip to content

Commit

Permalink
Update AudioPlayer.svelte: fix: begin playing sound again on ended
Browse files Browse the repository at this point in the history
Bug: on:ended the time was set to 0 but after the audio/video ends the audio/video is paused automatically.

Fix: on:ended the audio/video needs to be unpaused again.
  • Loading branch information
marfrede committed Jan 9, 2024
1 parent 4e15087 commit 64b600b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
bind:paused
preload="metadata"
on:ended={() => {
time = 0;
paused = false;
}}
/>

Expand Down

0 comments on commit 64b600b

Please sign in to comment.