vimeo / player.js

Interact with and control an embedded Vimeo Player.
https://player.vimeo.com/api/demo
MIT License
1.43k stars 261 forks source link

Best practice for using player.vimeo.com/api/player.js #527

Closed AlchemyUnited closed 4 years ago

AlchemyUnited commented 4 years ago

Is there a way to specify the version? What's the best way to get notified of updates?

It seems to me we should copy and host this local, but maybe not?

luwes commented 4 years ago

Duplicate of #364

Our CDN url will always return the latest version which is not always ideal.

I recommend using a versioned CDN like unpkg.com or indeed installing the package via NPM and bundling it with your app or hosting a specific version on your own server.

Hope this helps.

AlchemyUnited commented 4 years ago

@luwes - Yes. Helps.

Sorry for the dupe. If this is in the README, I didn't see it.

luwes commented 4 years ago

@AlchemyUnited all good. it makes sense to lock your app to a fixed version. since today we have enabled a versioned endpoint to the player releases.

e.g. https://player.vimeo.com/api/player-2.9.1.js