by callum » Mon Mar 18, 2019 4:16 pm
As expected, after upgrading the version of CEF we use to 3.3626.1895.g7001d56, YouTube videos no longer autoplay which breaks a lot of content for one of our common use cases since the user cannot interact with the browser to click to play.
I thought the solution for this was to append a command line option in my overridden OnBeforeCommandLineProcessing() function and adding a line like:
command_line->AppendSwitch("autoplay-policy=no-user-gesture-required");
but that doesn't change anything.
I confirmed that the CEF application doesn't autoplay by default but explicitly passing that switch in to the command line does indeed do the right thing and that looks to pass in the flag directly into CEF in its OnBeforeCommandLineProcessing().
What is the right way to do this?