為了改善您的使用體驗,本網站正在進行維護,部分功能暫時無法使用。若本站的文件無法解決您的問題,想要向社群發問的話,請到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 發問,我們的社群成員將很快會回覆您的疑問。

搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

Brightness and contrast in HTML5 video player?

more options

Hello Sir or Madam or Mister or Miss, is it possible to add in future version, "brightness" and "contrast" controls for the built-in HTML5 video player? And maybe also add "RGB" Red / Green / Blue controls ? Thanks if you will add these controls for the built-in HTML5 video player.

Hello Sir or Madam or Mister or Miss, is it possible to add in future version, "brightness" and "contrast" controls for the built-in HTML5 video player? And maybe also add "RGB" Red / Green / Blue controls ? Thanks if you will add these controls for the built-in HTML5 video player.

所有回覆 (5)

more options

HI ffilou6, Using SVG a site developer can style the video this way, however it is not a default feature of the HTML5 player. Please also suggest this in input.mozilla.org to leave feedback for the developers.

more options

It may be possible to modify the video using style rules. CSS has a filter property that allows you to reduce brightness and increase/decrease contrast.

There also are saturation and hue-rotation filters, but neither is really a straightforward way to adjust RGB levels. I think someone would need to create an add-on to "do the math" for that.

more options

Fun demo page for CSS filters applied to HTML5 video: http://bennettfeely.com/filters/

Click the "gear" icon at the upper right to open up choices so you can switch from the static image to videos. With more than a dozen video tags, it's a little jerky, but if you can overlook that, very interesting.

more options

@jscher2000: Thanks for the CSS information, I didn't know it was possible to do all this!

I'm a beginner in HTML, CSS and PHP coding. I now know it is possible to use CSS filters on pictures. But I don't even know if it is also possible to use CSS filter on a video?

more options

In the demo I linked to, if you right-click a filtered video of the fish tank and Inspect Element (Q), you can see how the filters are applied. Screen shot attached for reference.