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

"Transparent" Embed Option Not Working

Open adeeb1 opened this issue 9 years ago • 2 comments

Expected Behavior

When the transparent embed option is set to false, the responsive player and transparent background are disabled.

vimeo player - transparent option expectations

Actual Behavior

The responsive player and transparent background are enabled regardless of the value of the transparent embed option.

vimeo player - transparent option not working

Steps to Reproduce

var playerOptions = {
  id: "68401939",
  byline: false,
  portrait: false,
  transparent: false
};

var player = new Vimeo.Player("player", playerOptions);

JSFiddle: https://jsfiddle.net/7gnrxc2w/2

Additional Information

Browser: Google Chrome 62.0.3202.94 (Official Build) (64-bit) Player JS Version: Latest (I am using the CDN)

The transparent parameter is not present in the iframe src when it is specified. This is the src value generated using the options in the reproduction steps: https://player.vimeo.com/video/68401939?byline=0&portrait=0

The player in the screenshot of the Expected Behavior section above renders correctly because I manually modified the src value of the iframe using Google Chrome's DOM explorer. I changed the src value to the following: https://player.vimeo.com/video/68401939?byline=0&portrait=0&transparent=false

adeeb1 avatar Nov 19 '17 05:11 adeeb1

@adeeb1 Apologies for the delay. This has been fixed officially. If you look at your JSfiddle it performs as expected.

rebecca-sich avatar Nov 21 '17 22:11 rebecca-sich

@rsichel107 Great, thank you for the quick fix!

adeeb1 avatar Nov 22 '17 04:11 adeeb1