Control autoplay for each audio tag

I want to be able to control the autoplay feature for each independent audio tag.

I’ve seen some solutions using javascript to control which audio files gets autoplayed, but there’s no way to check whether or not a certain audio file has stopped playing, so this solution does not work if you want to play more than one audio file.

A new audio tag syntax might be appropriate.
For example:
[!sound:audio.mp3] → audio will never autoplay
[@sound:audio.mp3] → audio will always autoplay

There’s this pull request proposing something similar: Added arguments as [sound:filename|argument1 argument2...] by evandrocoan · Pull Request #540 · ankitects/anki · GitHub
But it doesn’t seem to be going anywhere from what I can see.

3 Likes

I’d like to bump this thread since I recently saw the need for such a functionality.

Has this been put on the docket or has it been forgotten about? - Just asking, because this really would be a useful feature.

There are more suggestions out there than resources available, so it may be some time before a given suggestion is implemented, and some may never be.