Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions code/framework/src/gui/cef/app.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ namespace Framework::GUI::CEF {
commandLine->AppendSwitch("disable-spell-checking");
commandLine->AppendSwitch("disable-component-update");
commandLine->AppendSwitchWithValue("disable-features", "WebUSB,WebHID");
// Allow UI audio without a user gesture: CEF views are host-driven overlays (notifications,
// HUD, menus) that never receive a real "user activation", so the default autoplay policy
// would silently block all sound (Web Audio / <audio>). This opts the embedded browser out.
commandLine->AppendSwitchWithValue("autoplay-policy", "no-user-gesture-required");
// No internal begin-frame scheduler: rendering uses external begin frames.
}

Expand Down
Loading