Are there any Javascript methods available to retrieve information about the current state of an audio tag? For example:
- Is the audio playing?
- Has it stopped?
- Is it muted?
- Is it paused?
I am aware of using play()
, pause()
, and others, but I'm unsure of how to check in the script whether the audio is playing to trigger another event or action. Any insights on this?