-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Closed
Labels
Milestone
Description
Paused binding on audio not working correctly
Describe the bug
The binding for paused on audio elements gives the wrong results in the following two cases:
- On mounting the audio element, the binding remains undefined until manually paused or unpaused, while the real property on the DOM is true.
- On changing the src attribute if the element is currently playing, the actual element will pause and its paused property on the DOM is set to true, but the binding remains false.
To Reproduce
Svelte REPL
Expected behavior
The bound variable remains bound and synced to the corresponding DOM property.
Severity
Somewhat annoying. I'm working on an audio player and though there are workarounds, it would be great if it worked as expected.
Additional context
I'm a bit new to open source and Svelte, but with a few pointers, I could take a crack at this myself.
littleninja, jer-0, Grsmto, lc-guy and bluepuma77