I have a checkbox that plays audio when it's checked and stops playing audio when unchecked. But the audio stops at a point if you keep it checked because of the length of the audio. When the audio ends I want to set the checkbox to unchecked. How do I check if the audio has stopped in javascript.
Sorry if I used the word check too many times.