Skip to content

Commit

Permalink
Minor Changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Taiizor committed Nov 2, 2024
1 parent d7ac773 commit 43f0fe1
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,10 @@ internal static class Internal

public static IntPtr CefHandle = IntPtr.Zero;

public static BrowserSettings CefSettings = new()
public static BrowserSettings CefSettings => new()
{
WindowlessFrameRate = 60
WindowlessFrameRate = 60,
BackgroundColor = Cef.ColorSetARGB(255, 0, 0, 0)
};
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,13 @@ internal static class Internal

public static string Video = string.Empty;

public static WebEngine WebEngine = new();

public static string YouTube = string.Empty;

public static IntPtr WebHandle = IntPtr.Zero;

public static WebEngine WebEngine = new()
{
DefaultBackgroundColor = Color.Black
};
}
}
2 changes: 2 additions & 0 deletions src/Shared/Engine/Sucrose.Shared.Engine/Manage/Internal.cs
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ internal static class Internal

"--allow-file-access",
"--allow-file-access-from-files",
"--allow-file-access-from-file-urls",
"--allow-universal-access-from-files",

"--disable-features=MediaEngagementBypassAutoplayPolicies,BlockInsecurePrivateNetworkRequests,PreloadMediaEngagementData,OutOfBlinkCors,IsolateOrigins"
Expand Down Expand Up @@ -171,6 +172,7 @@ internal static class Internal

{ "allow-file-access", "1" },
{ "allow-file-access-from-files", "1" },
{ "allow-file-access-from-file-urls", "1" },
{ "allow-universal-access-from-files", "1" },

{ "disable-features", "MediaEngagementBypassAutoplayPolicies,BlockInsecurePrivateNetworkRequests,PreloadMediaEngagementData,OutOfBlinkCors,IsolateOrigins" }
Expand Down

0 comments on commit 43f0fe1

Please sign in to comment.