merged the player into the php library as an example