MDN says:
The pause event is sent when a request to pause an activity is handled and the activity has entered its paused state, most commonly after the media has been paused through a call to the element's pause() method.
But what if the audio stops because it stalled, or on an ended event.
Would it still trigger the pause event? Or should I also perform actions on stalled and ended?