Requiring click-to-play for videos doesn't make sense in the
CEF context; we don't even support interactivity, and most pages
are going to be from trusted sources anyway. (Besides, any muted
videos already autoplay just fine, and our CEF source is always
muted.)
command_line->AppendSwitch("disable-gpu");
command_line->AppendSwitch("disable-gpu-compositing");
command_line->AppendSwitch("enable-begin-frame-scheduling");
command_line->AppendSwitch("disable-gpu");
command_line->AppendSwitch("disable-gpu-compositing");
command_line->AppendSwitch("enable-begin-frame-scheduling");
+ command_line->AppendSwitchWithValue("autoplay-policy", "no-user-gesture-required");
// https://bitbucket.org/chromiumembedded/cef/issues/2717/xmlhttprequest-empty-responsetext
command_line->AppendSwitch("disable-web-security");
// https://bitbucket.org/chromiumembedded/cef/issues/2717/xmlhttprequest-empty-responsetext
command_line->AppendSwitch("disable-web-security");