开发者

Altering the colour of Vimeo player?

开发者 https://www.devze.com 2023-03-16 19:03 出处:网络
Far I\'ve found that giving the iframe a background colour will alter the timeline number colour, but other than that I\'m not seeing a way to change the player\'s contro开发者_StackOverflow社区ls col

Far I've found that giving the iframe a background colour will alter the timeline number colour, but other than that I'm not seeing a way to change the player's contro开发者_StackOverflow社区ls colour other than the Vimeo embed code itself.

... iframe { background-color: #000; }

I'd Google'd this quite a bit, not found anything unfortunately so I turn to stack. I'm looking to change player controls. I have a slight feeling this can be done with jQuery maybe? Grab the default colour and change it, or something would be the idea.


As you said it can be achieved with options in Vimeo's embed code.

Alternatively, use those embed options to enable the Javascript API with api=1 then you can change options and set the color via Javascript with setColor().

Vimeo are working on an embeddable HTML5 player in which case you'll have full control over the player controls.

Hope that helps

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号