1 Attachment(s)
Unity3d plugin loading issue
I am trying to load a page designed to be loaded with unity 3d plugin with the below code.
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();
Attachment 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
Re: Unity3d plugin loading issue
I tried loading this page in QT/examples/webkitswidgets/browser, there too I am getting the same issue.
Re: Unity3d plugin loading issue
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
Re: Unity3d plugin loading issue
WebKit uses NPAPI by default.
1 Attachment(s)
Re: Unity3d plugin loading issue
In that, the attached page doesn't get loaded.Attachment 11113
Please let me know, what should be done to load this page successfully.
Re: Unity3d plugin loading issue
How to load unity3d object in QWebEngineView
or Is there a way I can play the unity3d animation in QWebEngineView