Skip to content

Paused binding on audio not working correctlyΒ #5914

@carlos-marchal

Description

@carlos-marchal

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions