player.js icon indicating copy to clipboard operation
player.js copied to clipboard

Loading new video into player requires player.vimeo.com to be set up as an embedded site

Open marshals opened this issue 10 years ago • 3 comments

Expected Behavior

It should continue to think that it's embedded in my domain.

Actual Behavior

Thinks it's embedded in player.vimeo.com

Steps to Reproduce

I have privacy set up to only allow videos to be embedded in certain domains. When I load the player initially using the following code I don't see an issue.

  this.player = new Vimeo.Player('videoContainer', {
    id: videoId,
    width: 800,
    height: 450,
    autoplay: true
  });

However, when I load a new video into the existing player I am told that I have to change the privacy settings so it can be embedded on player.vimeo.com

this.player.loadVideo(videoId).then((function(_this) {
  return function() {
    return _this.player.play();
  };
})(this));

marshals avatar Aug 31 '16 21:08 marshals

Thanks @marshals. I just made a comment about this in https://github.com/vimeo/player.js/issues/41#issuecomment-243812956

ccampbell avatar Aug 31 '16 21:08 ccampbell

I just deployed a fix for this, and I believe it should be working now. Let me know if not!

ccampbell avatar Sep 01 '16 18:09 ccampbell

@ccampbell Looks like it's working now. Thanks!

marshals avatar Sep 01 '16 19:09 marshals