Code Monkey home page Code Monkey logo

Comments (6)

tishion avatar tishion commented on May 26, 2024

@jun-zhang

I don't know whether the CEF supports it or not. This projects is only for integrating the CEF with QT, so could you please take a look at some other topics about CEF enable flash?


我并不清楚CEF目前是否继续支持Flash插件, 早些时候CEF支持所谓的PPAPI Flash插件(chrom浏览器中包含的)但是现在是否继续支持我也不得知,所以你可以自行搜索一下相关问题么?这个项目仅仅是作一个CEF和QT的集成的,至于具体的CEF的细节功能我都没有太过深入的探究,而且推荐使用H5来代替你的flash功能

from qcefview.

jun-zhang avatar jun-zhang commented on May 26, 2024

Using the same version of the cef example can be loaded flash plugin, I don't know what causes cef can't load the flash.

from qcefview.

lgxZJ avatar lgxZJ commented on May 26, 2024

@jun-zhang same problem, using cef directly can load the flash plugin, but using QCefView(coding inside OnBeforeCommandLineProcessing() method) cannot make it work.

from qcefview.

lgxZJ avatar lgxZJ commented on May 26, 2024

@jun-zhang @tishion #24

from qcefview.

jun-zhang avatar jun-zhang commented on May 26, 2024

//browserSettings.plugins = STATE_ENABLED; // disable all plugins

from qcefview.

BBDXF avatar BBDXF commented on May 26, 2024

启用Flash

// QCefViewBrowserApp.cpp line 24
void QCefViewBrowserApp::OnBeforeCommandLineProcessing(
	const CefString& process_type, 
	CefRefPtr<CefCommandLine> command_line)
{
	command_line->AppendSwitch("disable-spell-checking");
	//command_line->AppendSwitch("disable-extensions");
	command_line->AppendSwitch("disable-pdf-extension");
	command_line->AppendSwitch("enable-direct-write");
	command_line->AppendSwitch("allow-file-access-from-files");
	command_line->AppendSwitchWithValue("renderer-process-limit", "1");
	command_line->AppendSwitch("--disable-web-security");//关闭同源策略
	command_line->AppendSwitch("--enable-system-flash");//使用系统flash
}

// QCefView.cpp line 39
browserSettings.plugins = STATE_DEFAULT;	// disable all plugins

from qcefview.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.