Closed SkipRollins closed 5 months ago
Thanks for the suggestion. It's something I'm not planning to add to this extension, but I've slowly been preparing the code for sharing the core ambient light effect with a new and more general ambient light extension.
This is due to the settings menu being integrated into the YouTube player and some other functionalities being specific to the YouTube layout. Once the core functionality has been separated enough I might take a crack at a new extension that supports any webpage with a video element. I'll let you know in this issue once there is a testable version of a new extension.
That is very exciting to hear! Thank you!
For now I'm going to misuse this issue as a progress/todo log
I've been playing around with a generic ambient light effect on any video element on any website. It mostly works, but here are the details/limitations that require attention:
crossOrigin="use-credentials
or crossOrigin="anonymous"
Example video (Twitch Clips)YouTube
Vimeo
France24
Nu.nl
Local files
Formula 1
Formula 1 TV Pro
BBC
Twitch
[ ] Gray backgrounds on panels require custom css
.channel-root,
.channel-root--watch .channel-root__info,
.channel-root__player [class^="Layout-"] > div,
.channel-root__info .channel-info-content,
.channel-root__right-column,
.channel-root__right-column [class^="Layout-"],
.channel-root__player-background {
background: transparent !important;
}
[ ] Transparent background in fullscreen mode because the fullscreen element is the root element instead of only the video player. Requires custom css
Awesome sauce.
Ambient light is a great way to watch full screen video content on oled monitors when the content dies not full the screen to prevent uneven burn in from the black bars the ambient light fills. This would be great on other sites as well. Is it possible for ambient light support to be added to more sites than just YouTube?