is this the same as https://github.com/Versal/player-api/blob/master/index.js#L69