playing functionality on the player
events on play and pause