Open ann-brown opened 6 years ago
Apologies for super-late follow-up, here. The assumption is URLs are always the same and so clicking a link with the identical href
will cause a current playing sound to toggle, etc.
It's a bit of a hack, but you could make the URLs unique by appending a hash fragment eg., #1
, #2
etc., and thus the URLs wouldn't be the same. Query params could also work, e.g., ?offset=1
or similar. However, the browser would download the asset twice in that case.
The second is how I handled it for now - media is often embedded in a location where the hash fragment in the URL might already be used for an anchor.
When hitting the play button for an audio link that is repeated in a page, whichever one was hit first seems to take precedence over the other and stop the other from being a viable input. I'd expect something more like both activating, and both remaining usable.