简体   繁体   English

改变 Vimeo 播放器的颜色?

[英]Altering the colour of Vimeo player?

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 controls colour other than the Vimeo embed code itself.到目前为止,我发现给 iframe 提供背景颜色会改变时间线编号颜色,但除此之外,除了 Vimeo 嵌入代码本身之外,我没有看到改变播放器控件颜色的方法。

... 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?我有一点感觉,这可以用 jQuery 来完成吗? 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 .正如您所说,它可以通过Vimeo 嵌入代码中的选项来实现。

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() .或者,使用这些嵌入选项启用 Javascript API with api=1然后您可以更改选项并通过 JavascriptsetColor()设置颜色。

Vimeo are working on an embeddable HTML5 player in which case you'll have full control over the player controls. Vimeo正在开发一款可嵌入的 HTML5 播放器,在这种情况下,您可以完全控制播放器控件。

Hope that helps希望有帮助

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM