svelte
svelte copied to clipboard
Paused binding on audio not working correctly
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.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Hey, any update on this issue? I have updated the repl because it had 404 links: https://svelte.dev/repl/1e2a6d6b6d4d4272bb5515e21b95d224?version=3.50.0 this is also a bug for video media: https://svelte.dev/repl/76edd1d0c0e84cbc9ab25abb5b443416?version=3.50.0
Bumping this, issue still exists.
This will be fixed in Svelte 5