fanoI
24th October 2018, 15:28
I'm having problem to make the browser load the vlc plugin I've an html page that has this code inside:
<OBJECT type="applications/x-vlc-plugin" classid="clsid:9BE31822-FDAD-461B-AD51-BE1D1C159921"
codebase="http://downloads.videolan.org/pub/videolan/vlc/latest/win32/axvlc.cab#Version=0,8,6,0"
width="640"
height="480"
id="vlc"
version="VideoLAN.VLCPlugin.2">
<param name="MRL" id="mrlid" value="rtsp://***********" />
<param name="ShowDisplay" value="True" />
<param name="AutoLoop" value="False" />
<param name="AutoPlay" value="False" />
<param name="Volume" value="50" />
<param name="StartTime" value="0" />
<EMBED pluginspage="http://www.videolan.org" type="application/x-vlc-plugin" progid="VideoLAN.VLCPlugin.2" width="640" height="480" name="vlce"></EMBED>
</OBJECT>
Instead of a movie I simply obtain a weird blue cube with '?' inside... no error, no debug anything...
I think to have enabled plugins in all possibles ways:
I've added in the QApplication ctor this code:
QWebSettings *settings = QWebSettings::globalSettings();
settings->setAttribute(QWebSettings::JavascriptEnabled, true);
settings->setAttribute(QWebSettings::PluginsEnabled, true);
I've done this in any QWebView that is created too...
Another thing I've tried is to force Qt to search plugins where npapi-vlc is installed doing in this way:
QCoreApplication::addLibraryPath("/usr/lib64/mozilla/plugins/");
and I continue to get a cube instead of a movie :mad::mad::mad:
What is the trick? There is some strange file to edit in some weird place to enable / disable some security that is blocking it?
The version of Qt I'm using is 5.6.1-3.
Please help me.
Thank you!
<OBJECT type="applications/x-vlc-plugin" classid="clsid:9BE31822-FDAD-461B-AD51-BE1D1C159921"
codebase="http://downloads.videolan.org/pub/videolan/vlc/latest/win32/axvlc.cab#Version=0,8,6,0"
width="640"
height="480"
id="vlc"
version="VideoLAN.VLCPlugin.2">
<param name="MRL" id="mrlid" value="rtsp://***********" />
<param name="ShowDisplay" value="True" />
<param name="AutoLoop" value="False" />
<param name="AutoPlay" value="False" />
<param name="Volume" value="50" />
<param name="StartTime" value="0" />
<EMBED pluginspage="http://www.videolan.org" type="application/x-vlc-plugin" progid="VideoLAN.VLCPlugin.2" width="640" height="480" name="vlce"></EMBED>
</OBJECT>
Instead of a movie I simply obtain a weird blue cube with '?' inside... no error, no debug anything...
I think to have enabled plugins in all possibles ways:
I've added in the QApplication ctor this code:
QWebSettings *settings = QWebSettings::globalSettings();
settings->setAttribute(QWebSettings::JavascriptEnabled, true);
settings->setAttribute(QWebSettings::PluginsEnabled, true);
I've done this in any QWebView that is created too...
Another thing I've tried is to force Qt to search plugins where npapi-vlc is installed doing in this way:
QCoreApplication::addLibraryPath("/usr/lib64/mozilla/plugins/");
and I continue to get a cube instead of a movie :mad::mad::mad:
What is the trick? There is some strange file to edit in some weird place to enable / disable some security that is blocking it?
The version of Qt I'm using is 5.6.1-3.
Please help me.
Thank you!