I'm trying to enable Flash in "cefsimple" default example by adding following code:
- Code: Select all
void SimpleApp::OnBeforeCommandLineProcessing(const CefString &process_type, CefRefPtr<CefCommandLine> command_line)
{
command_line->AppendSwitchWithValue("ppapi-flash-path","pepflashplayer.dll");
command_line->AppendSwitch("enable-system-flash");
command_line->AppendSwitchWithValue("ppapi-flash-path","/opt/google/chrome-unstable/PepperFlash/libpepflashplayer.so");
command_line->AppendSwitchWithValue("ppapi-flash-version","17.0.0.141");
}
But when I compile the project and open flash, I get the message at the place where flash content should be showed:
"Control-click to run Adobe Flash Player"
When I press "control-click" and select "Run This Plugin" option, nothing happens.
I wonder should I do anything more except the code above to enable Flash?
Does PPAPI plugin already included to CEF?
Should I download the plugin to include it to my project?
How can I avoid the message "Control-click to run Adobe Flash Player" and start Flash plugin automatically?
I will be grateful for any advices. Thx!
P.S. Sorry for the spelling, English is not my native language