Add play and stop method to the api