-
Notifications
You must be signed in to change notification settings - Fork 3
/
MyApp.cpp
16 lines (16 loc) · 723 Bytes
/
MyApp.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include "MyApp.h"
#include "include/cef_app.h"
MyApp::MyApp()
{
}
void MyApp::OnBeforeCommandLineProcessing(const CefString &process_type, CefRefPtr<CefCommandLine> command_line)
{
std::string path = std::string(std::getenv("HOME")) + "/.local/lib/flash/libpepflashplayer.so";
command_line->AppendSwitchWithValue("ppapi-flash-path", path);
command_line->AppendSwitchWithValue("ppapi-flash-version", "32.0.0.465");
command_line->AppendSwitch("allow-outdated-plugins");
command_line->AppendSwitchWithValue("plugin-policy", "allow");
command_line->AppendSwitch("no-sandbox");
command_line->AppendSwitch("enable-media-stream");
command_line->AppendSwitch("enable-usermedia-screen-capturing");
}