Results 1 to 3 of 3

Thread: Vlc browser plugin (npapi-vlc) does not load in Qt Webkit browser

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Apr 2013
    Location
    milan
    Posts
    13
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Vlc browser plugin (npapi-vlc) does not load in Qt Webkit browser

    I'm having problem to make the browser load the vlc plugin I've an html page that has this code inside:

    Qt Code:
    1. <OBJECT type="applications/x-vlc-plugin" classid="clsid:9BE31822-FDAD-461B-AD51-BE1D1C159921"
    2.  
    3. codebase="http://downloads.videolan.org/pub/videolan/vlc/latest/win32/axvlc.cab#Version=0,8,6,0"
    4. width="640"
    5. height="480"
    6. id="vlc"
    7. version="VideoLAN.VLCPlugin.2">
    8. <param name="MRL" id="mrlid" value="rtsp://***********" />
    9. <param name="ShowDisplay" value="True" />
    10. <param name="AutoLoop" value="False" />
    11. <param name="AutoPlay" value="False" />
    12. <param name="Volume" value="50" />
    13. <param name="StartTime" value="0" />
    14. <EMBED pluginspage="http://www.videolan.org" type="application/x-vlc-plugin" progid="VideoLAN.VLCPlugin.2" width="640" height="480" name="vlce"></EMBED>
    15. </OBJECT>
    To copy to clipboard, switch view to plain text mode 

    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:

    Qt Code:
    1. QWebSettings *settings = QWebSettings::globalSettings();
    2. settings->setAttribute(QWebSettings::JavascriptEnabled, true);
    3. settings->setAttribute(QWebSettings::PluginsEnabled, true);
    To copy to clipboard, switch view to plain text mode 

    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:

    Qt Code:
    1. QCoreApplication::addLibraryPath("/usr/lib64/mozilla/plugins/");
    To copy to clipboard, switch view to plain text mode 

    and I continue to get a cube instead of a movie

    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!

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: Vlc browser plugin (npapi-vlc) does not load in Qt Webkit browser

    I am not sure that it is reasonable to expect an ActiveX component, i.e. developed for Windows and very dependent on things like the registry, to work in a Linux/UNIX environment.

Similar Threads

  1. run example qt5.1.1 browser on arm (qt-5.1.1/examples/webkitwidgets/browser/browser)
    By soumya pandiyattu in forum Qt for Embedded and Mobile
    Replies: 3
    Last Post: 8th December 2014, 07:47
  2. QT WebKit - Browser Interaction Problem
    By s7 in forum Qt Programming
    Replies: 10
    Last Post: 22nd May 2012, 16:51
  3. Handling multiple web pages in Qt WebKit Browser
    By dpen41 in forum Qt Programming
    Replies: 6
    Last Post: 7th February 2012, 21:15
  4. Replies: 0
    Last Post: 17th March 2011, 03:17
  5. Not able to run fancy browser and demo browser example applications
    By GoGetIt in forum Installation and Deployment
    Replies: 1
    Last Post: 16th August 2010, 06:23

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.