Added event listeners so that when the system (or some other form of code) pauses the audio the player is paused as well