When a video plays normally:
The timeline control will appear when one pauses the video or moves the mouse. In a WebKit-based browser like Chrome, it looks like this:
So there is a dark area around the timeline. How to modify/remove that overlayed effect, leaving only the timeline and the buttons/texts? I have played with the background-color
of some pseudo-elements in chromium/Source/core/css/mediaControlsNew.css, such as video::-webkit-media-controls-enclosure
or video::-webkit-media-controls-panel
, but they don’t control that part.
2
Answers
I found the answer right after I posted the question. The correct file to look for clues is probably chromium/third_party/blink/renderer/modules/media_controls/resources/mediaControls.css. And one may see
So instead of fiddling with
background-color
, I usedbackground: transparent
and the style changed successfully.