Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Paused binding on audio not working correctly #5914

Closed
carlos-marchal opened this issue Jan 21, 2021 · 5 comments
Closed

Paused binding on audio not working correctly #5914

carlos-marchal opened this issue Jan 21, 2021 · 5 comments

Comments

@carlos-marchal
Copy link

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.

@stale
Copy link

stale bot commented Jun 26, 2021

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 stale bot added the stale-bot label Jun 26, 2021
@stale stale bot removed the stale-bot label Jun 26, 2021
@stale stale bot removed the stale-bot label Jun 27, 2021
@stale
Copy link

stale bot commented Dec 24, 2021

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 stale bot added the stale-bot label Dec 24, 2021
@jer-0
Copy link

jer-0 commented Sep 8, 2022

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

@lc-guy
Copy link

lc-guy commented Jun 29, 2023

Bumping this, issue still exists.

@dummdidumm
Copy link
Member

This will be fixed in Svelte 5

@dummdidumm dummdidumm added this to the 5.x milestone Oct 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants