Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. QtWebEngine load flash plugin on Raspberry Pi with Jessie Lite
Forum Updated to NodeBB v4.3 + New Features

QtWebEngine load flash plugin on Raspberry Pi with Jessie Lite

Scheduled Pinned Locked Moved Solved Mobile and Embedded
flashqtwebengineqml
6 Posts 3 Posters 3.4k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • 8 Offline
    8 Offline
    805Badger
    wrote on 15 Mar 2017, 23:12 last edited by
    #1

    Hi All,

    Thanks in advance for your help on something that has been driving me crazy. I'm new to Qt. I have Qt 5.8 running on Ubuntu 16.04 and a Raspberry Pi 3 with Jessie Lite. My application launches a page that requires Flash. Got it working no problem on my development machine but i have not been able to get the flash plug in to work on the Raspberry Pi.

    I have tried installing flash21 and placing libpepflashplayer.so in each of the required directories as indicated here: https://doc.qt.io/qt-5/qtwebengine-features.html#pepper-plugin-api. None of them worked.

    Also, I have set both QWebEngineSettings::globalSettings()->setAttribute(QWebEngineSettings::PluginsEnabled, true); and in my QML file in the Webview item I have settings.pluginsEnabled: true set.

    I have also tried the command line arguments in Qt Creator to --ppapi-flash-path=./libpepflashplayer.so, with the appropriate path to the libpepflashplayer.so file, none of which seems to load the plugin.

    Any idea what I am missing here?

    J 1 Reply Last reply 16 Mar 2017, 06:07
    0
    • 8 805Badger
      15 Mar 2017, 23:12

      Hi All,

      Thanks in advance for your help on something that has been driving me crazy. I'm new to Qt. I have Qt 5.8 running on Ubuntu 16.04 and a Raspberry Pi 3 with Jessie Lite. My application launches a page that requires Flash. Got it working no problem on my development machine but i have not been able to get the flash plug in to work on the Raspberry Pi.

      I have tried installing flash21 and placing libpepflashplayer.so in each of the required directories as indicated here: https://doc.qt.io/qt-5/qtwebengine-features.html#pepper-plugin-api. None of them worked.

      Also, I have set both QWebEngineSettings::globalSettings()->setAttribute(QWebEngineSettings::PluginsEnabled, true); and in my QML file in the Webview item I have settings.pluginsEnabled: true set.

      I have also tried the command line arguments in Qt Creator to --ppapi-flash-path=./libpepflashplayer.so, with the appropriate path to the libpepflashplayer.so file, none of which seems to load the plugin.

      Any idea what I am missing here?

      J Offline
      J Offline
      jsulm
      Lifetime Qt Champion
      wrote on 16 Mar 2017, 06:07 last edited by
      #2

      @805Badger I don't think there is flash plugin for RPi - at least not from Adobe. From where did you get flash21/libpepflashplayer.so ? It's most probably x86 library not ARM.

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • 8 Offline
        8 Offline
        805Badger
        wrote on 16 Mar 2017, 15:28 last edited by 805Badger
        #3

        Thanks for the reply.

        In my first attempt to install flash, I followed the procedure here about Howto: Pepper Flash Player for Chromium-Browser.

        I also have done the build on a full version of Jessie, which includes a flash plug in. I verified that flash works using the Chromium browser from the Pixel desktop. However, the plugin isn't located in one of the locations described in the Qt WebEngine Features documentation, so I tried using the command line argument --ppapi-flash-path=/usr/lib/chromium-browser/libpepflashplayer.so, which is the directory that the .so file is located. Still no luck.

        So a couple of newbie questions

        1. When the documentation says to add a command line argument that means put in in the Arguments field in Qt Creator, correct? Or when you run the application add it there? I've done both and neither loaded the plug in.

        2. The Qt WebEngine documentation says to register the plugin using --register-pepper-plugins="libppapi_example.so;application/x-ppapi-example" with the correct address and plugin title. I have done this sort of thing when running chromium from the command line, but since I am not starting chromium myself, where does this go?

        Thanks again for any help you can give me.

        J 1 Reply Last reply 17 Mar 2017, 05:53
        0
        • 8 805Badger
          16 Mar 2017, 15:28

          Thanks for the reply.

          In my first attempt to install flash, I followed the procedure here about Howto: Pepper Flash Player for Chromium-Browser.

          I also have done the build on a full version of Jessie, which includes a flash plug in. I verified that flash works using the Chromium browser from the Pixel desktop. However, the plugin isn't located in one of the locations described in the Qt WebEngine Features documentation, so I tried using the command line argument --ppapi-flash-path=/usr/lib/chromium-browser/libpepflashplayer.so, which is the directory that the .so file is located. Still no luck.

          So a couple of newbie questions

          1. When the documentation says to add a command line argument that means put in in the Arguments field in Qt Creator, correct? Or when you run the application add it there? I've done both and neither loaded the plug in.

          2. The Qt WebEngine documentation says to register the plugin using --register-pepper-plugins="libppapi_example.so;application/x-ppapi-example" with the correct address and plugin title. I have done this sort of thing when running chromium from the command line, but since I am not starting chromium myself, where does this go?

          Thanks again for any help you can give me.

          J Offline
          J Offline
          jsulm
          Lifetime Qt Champion
          wrote on 17 Mar 2017, 05:53 last edited by
          #4

          @805Badger You should check whether libpepflashplayer.so has any dependencies to other libraries:

          ldd libpepflashplayer.so
          

          Also here you're passing a relative path to the lib: --ppapi-flash-path=./libpepflashplayer.so
          Try to pass absolute path.

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • S Offline
            S Offline
            sneubert
            wrote on 17 Mar 2017, 07:03 last edited by
            #5

            For Q5 5.7.1 I had to enable plugin support before compiling QtWebEngine to use pepper flash.
            By default plugin support for chromium backend is disabled on embedded targets.

            see https://forum.qt.io/topic/74044/cross-compilation-guide/4

            1 Reply Last reply
            0
            • 8 Offline
              8 Offline
              805Badger
              wrote on 17 Mar 2017, 19:41 last edited by
              #6

              @jsulm

              Thanks for the suggestion. I forget about ldd and usually notice about missing dependencies when I get an error. It's a great suggestion in this case when I may not see the errors, but I checked and all dependencies have been met.

              @sneubert
              You're the bomb!!! That was it. I recompiled with the enable plugins flag set and all is working now. Thank you so much for your help. Not sure how else I would have found it.

              1 Reply Last reply
              0

              3/6

              16 Mar 2017, 15:28

              • Login

              • Login or register to search.
              3 out of 6
              • First post
                3/6
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt Extensions
              • Unsolved