A common class to play and pause music.