Skip to content

Commit

Permalink
Fix initial loading bug for Private Vimeo videos
Browse files Browse the repository at this point in the history
Private Vimeo videos have the structure `https://vimeo.com/<number>/<hex>`. For some reason, when passing just the ID to the initial player, it chokes with errors. When the player is already loaded, using the ID seems to work fine.
  • Loading branch information
quicksnap committed May 5, 2017
1 parent 64c2c2b commit ff8a449
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/players/Vimeo.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export default class Vimeo extends Base {
this.player = new Vimeo.Player(this.container, {
...DEFAULT_OPTIONS,
...this.props.vimeoConfig.playerOptions,
id,
url,
loop: this.props.loop
})
this.player.on('loaded', () => {
Expand Down

0 comments on commit ff8a449

Please sign in to comment.