How disable sound in Cefsharp Offscreen - cefsharp

How disable sound in Cefsharp Offscreen. In the official documentation did not find this information. A sound when the browser is annoying because like no program is open and there are alerts and other sounds.

This solved my problem. Than initialize Cef add argument:
settings.CefCommandLineArgs.Add("mute-audio", "true");

Related

Cannot load pepper flash plugin in QtWebEngine with Qt5.6

I made a simple web browser but when I access to
https://get.adobe.com/jp/flashplayer/
It says
Adobe Flash Player is already installed, but disabled
However as I read http://doc.qt.io/qt-5/qtwebengine-platform-notes.html
It says that pepper flash plugin should be automatically loaded if there is a proper dll file. I checked my C:\Windows\System32\Macromed\Flash\ and I'm sure that I have a pepflashplayer32_21_0_0_213.dll there.
Then I also set
QWebEngineSettings *websetting = QWebEngineSettings::defaultSettings();
websetting->setAttribute(QWebEngineSettings::PluginsEnabled, true);
but still no hopes.
Anyone knows how to enable flash with QtWebEngine?
OK I got a working answer here:
https://forum.qt.io/topic/66187/cannot-load-pepper-flash-plugin-in-qtwebengine-with-qt5-6/3
For me I have to copy pepflashplayer.dll from chrome. It seems that installed pepflashplayer*.dll from adobe does not work.
After installing PepFlashPlayer, you need to enable PPAPI in your application manually (it is disabled by default). Use following code before showing the page:
QWebEngineSettings::globalSettings()->setAttribute(QWebEngineSettings::PluginsEnabled, true);
Maybe do it manually with this command line argument:
--ppapi-flash-path=./libpepflashplayer.so
See also the different bug reports relative to this problem : 51774 and
49625.

CefSharp get screenshot of a page

Is it possible to get screenshot of a web page using CefSharp? I have found information about GetImage() method but it seems to be not supported anymore. Is there any other way? I need to get screenshots from off-screen browser so making screenshot of a screen with browser displayed is not a solution.
I've implemented this feature in a forked branch https://github.com/ivan-sam/CefSharp. This implementation depends on a another commit that fixes script evaluation bug https://github.com/cefsharp/CefSharp/issues/445 , so please clone or download the whole branch.
I've modified CefSharp.Wpf.Example project and added Snapshot button that makes snapshot of the page and opens an image.
If you need to use this feature in WinForms app you can host WPF control with ElementHost

Google Chrome recognizes my Qt app as malware

I made a little program in Qt and C++ that helps to connect to the internet.
The app works great, but when I download the .exe (or the installer), Google Chrome recognizes it as malware.
Scanning the app with Microsoft Security Essentials does not return any problems.
I use Qt with QFile, QString, QtextStream, QPointer, QWebview, QWebFrame, QWebElement, QUrl, QDesktopServices, QStringList, QEventLoop.
Does anybody knows how to solve this problem?
Try to get in touch with Google service, maybe there, you can find answers.
Second idea is try to check your .exe by some antiviruses (for example, online service by Dr.Web -- http://vms.drweb.com/online/).

Audio not working in Android platform with playn

Is audio working in the android backend of playn?
I recently tried a demo I made, and it didn't play any sound.
This is happening just in the android backend, html and java are playing the sounds just fine.
I'm using mp3 files.
Yes.
Sounds work fine in my case for Android, but it doesn't work in Java - paradox.
My code:
soundTest = assetManager().getSound("sounds/test");
soundTest.setLooping(true);
soundTest.play();
I have audio files in path:
.../resources/test.mp3
.../resources/test.wav
Check if you dont add .mp3 od .wav to getSound method.
Check if you have files in subfolder /resources/ which is not writen in getSound method.
Here they told, that sound implemented partially, it is real.
For me PlayN.audio() sometimes works some time doesn't, and some times it has invisible memmory leaks and crashes when you trying to close activity, so for PlayN Android part I implemented my own SoundPool (plays *.ogg). It's much more simply and stable than MediaPlayer.
Good working example here and it works perfectly.
For Java Platform PlayN.audio() works fine.

Does Flash Builder 4 Profiler work with a Flex 4.5 project?

I'm trying to use the Profiler for the first time so I don't know much about it. But it doesn't seem to work.
I run my project under profiler, it says it is running, but no window shows up. Nothing. I can see the project's icon down there but I see no window at all.
Can this be cause by the fact that I'm using Flex 4.5? Or am I missing something?
Updated: Here's a screenshot of the Profiler running the an app. You can the app in the dock and it shows its live objects, but I don't see the apps' window and cannot interact with it. The app is just a simple 400x400 window with some black shapes in it.
Thanks in advance,
Nuno
I think your problem is that you may not be running it in a debug player. Check to make sure.
It could be related to this question. It seems the profiler doesn't work well with Flash Player 10.1.

Resources