Adds PlayPause function to the API