Skip to content

Add BackgroundColor and VideoAutoplay to CefSettings#398

Merged
heldergoncalves92 merged 3 commits intoOutSystems:masterfrom
russkyc-forked-repos:master
Dec 17, 2025
Merged

Add BackgroundColor and VideoAutoplay to CefSettings#398
heldergoncalves92 merged 3 commits intoOutSystems:masterfrom
russkyc-forked-repos:master

Conversation

@russkyc
Copy link
Contributor

@russkyc russkyc commented Dec 15, 2025

This PR adds 2 things:

1. Allow for setting the background color of the webview using:

// Set cef background color
WebView.Settings.BackgroundColor = Color.Black; 

This should be useful for:

  • Dark themed apps, so that the webview does not flash white while loading content
  • Consistency, we will be able to set a background consistent with the content that will be loaded

2. Allow setting the video autoplay behavior using:

// Set cef video autoplay behavior
WebView.Settings.EnableVideoAutoplay = true;

Which should resolve #397

Signed-off-by: Russell Camo <jrcc1023@gmail.com>
Signed-off-by: Russell Camo <jrcc1023@gmail.com>
…perty

Add EnableVideoAutoplay property to GlobalSettings
@russkyc russkyc changed the title Add BackgroundColor to CefSettings Add BackgroundColor and VideoAutoplay to CefSettings Dec 15, 2025

public IEnumerable<KeyValuePair<string, string>> CommandLineSwitches => commandLineSwitches;

public Color BackgroundColor {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

May you add a summary comment explaining that on Color.FromArgb(alpha, r, g, b), background colors with alphas different from 255 are not supported by Cef?

@heldergoncalves92 heldergoncalves92 merged commit f22b14c into OutSystems:master Dec 17, 2025
5 of 9 checks passed
@heldergoncalves92
Copy link
Contributor

Hello @russkyc,

Thank you for the contribution! It’s great to have you helping out. Feel free to pick up any other open issues if you're interested in contributing further.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Does not support video autoplay

2 participants