svelte icon indicating copy to clipboard operation
svelte copied to clipboard

Paused binding on audio not working correctly

Open carlos-marchal opened this issue 4 years ago • 4 comments
trafficstars

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.

carlos-marchal avatar Jan 21 '21 15:01 carlos-marchal

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.

stale[bot] avatar Jun 26 '21 21:06 stale[bot]

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.

stale[bot] avatar Dec 24 '21 15:12 stale[bot]

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

jer-0 avatar Sep 08 '22 03:09 jer-0

Bumping this, issue still exists.

lc-guy avatar Jun 29 '23 21:06 lc-guy

This will be fixed in Svelte 5

dummdidumm avatar Oct 20 '23 12:10 dummdidumm