Skip to content

HTML <audio> volume attribute #1143

Closed
Closed
@jacobmischka

Description

@jacobmischka

I know that volume is not one of the documented bind properties for <audio>, but I'm surprised that setting the attribute doesn't work at all. This can be worked around with refs, but it would be handy if svelte did that for us when changing volume.

<audio src="{{src}}" volume="{{volume}} />

I imagine this shouldn't be terribly difficult, I'll try to look at this as soon as I find the time.

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions