PDA

View Full Version : Unity3d plugin loading issue



ejoshva
20th April 2015, 08:05
I am trying to load a page designed to be loaded with unity 3d plugin with the below code.


QWebSettings::globalSettings()->setAttribute(QWebSettings::PluginsEnabled, true);
QWebView *webView = new QWebView();
webView->page()->settings()->setAttribute(QWebSettings::PluginsEnabled, true);

webView->load(QUrl("file:///Users/user/Downloads/Empty/Empty.html"));
webView->show();


11103

The page is loaded as blank.

Getting the below errors
Cannot find executable for CFBundle 0x7f97f9f18d40 </Library/Internet Plug-Ins/Unused> (not loaded)

But unity web player.plugin is found in the /Library/Internet Plug-Ins

Kindly let me know where I am going wrong

ejoshva
20th April 2015, 10:10
I tried loading this page in QT/examples/webkitswidgets/browser, there too I am getting the same issue.

ejoshva
21st April 2015, 07:03
It uses NPAPI plugin to load the page. So at first, it was not getting loaded in chrome browser. Once I enabled NPAI (chrome://flags -> NPAPI enable), the page is loaded successfully.

Like the same, is there a way to enable NPAPI plugin explicitly in Qt. Since I have enabled plugins in my code.


Note : code in 1st post of this thread

wysota
21st April 2015, 07:50
WebKit uses NPAPI by default.

ejoshva
21st April 2015, 07:56
In that, the attached page doesn't get loaded.11113
Please let me know, what should be done to load this page successfully.

ejoshva
21st April 2015, 13:36
How to load unity3d object in QWebEngineView
or Is there a way I can play the unity3d animation in QWebEngineView