Solved QtWebEngine --register-pepper-plugins
-
Hi guys,
I have rebuilt Qt 5.10.0 from source with proprietary codecs enabled so I can use "widevinecdm.dll" to watch Netflix video or any Widevine encrypted video:
example of video here:
https://shaka-player-demo.appspot.com/demo/#asset=//storage.googleapis.com/shaka-demo-assets/angel-one/dash.mpd;lang=en-CASo after the rebuilt. I thought I would have support for this plugin by just dropping the dll inside the /release folder.
Unfortunately It is not working, and I have no way of knowing what the issue is.
I read that I may need to --register-pepper-plugins on t Chromium command line,
But since I am launching Chromium from my application, I don't know how I can achieve that?
Any way to debug this further? I spent a day learning to build Qt from source -_-Thanks!
Edit:
Should be loaded auto when reading source..
http://code.qt.io/cgit/qt/qtwebengine.git/tree/src/core/content_client_qt.cpp?id=c305cc06c74cb95ef2ddfacee0ede1d82e3dbb3c -
Solved.
https://bugreports.qt.io/browse/QTBUG-64071New version of widevine.dll are not working
-
Maybe related to that:
https://bugreports.qt.io/browse/QTBUG-64071The Latest Qt 5.10.0 cloned from source has new flag for QtWebEngine:
configure -opensource -confirm-license -release -openssl-runtime -webengine-pepper-plugins -webengine-proprietary-codecsGonna try to rebuilt with that
-
Solved.
https://bugreports.qt.io/browse/QTBUG-64071New version of widevine.dll are not working
-
@maximus What system are you working on?
-
@maximus I have compiled Qt5.9.3, but I just don't know how to let QWebEngine display my pepper plugins.
-
Just make sure you use the same Chromium version that is bundled with Qt (61, 62, now 65 with the alpha)
I drop the dll or the dylib right near the the executable after compilation -
@maximus Hello, can you describe it in detail?
Here's the thing: I put the plugin's DLL, lib in the release, and "don't support the plugin"; -
Did you rebuild Qt from source with the flag on?
aka:
git clone qt5 cd qt5 git checkout tag version, i.e : git checkout v5.10.0 perl init-repository --configure, use another folder prefix on the same level as qt source ./configure -opensource -confirm-license -release -webengine-pepper-plugins -webengine-proprietary-codecs -no-openssl -securetransport -prefix /Users/maxime.blais/Qt/Qt5.11.0_alpha make make install
-
@maximus
I have compiled Qt5.9.3 and enable -pepper-code. -
This is the parameter I compile.
Qt WebEngine:
Embedded build ......................... no
Pepper Plugins ......................... yes
Printing and PDF ....................... yes
Proprietary Codecs ..................... yes
Spellchecker ........................... yes
WebRTC ................................. yes
Using system ninja ..................... yes -
This is looking good.
Where did you get the plugin ddl from?
Make sure it is from the same Chromium version as the Qt version you are using (Chromium 56, x86 or x64)
Kind of hard to find old version of widevine.dll so I prefered to go with the alpha version, which is using latest Chromium 65 -
@maximus !
My source code uses the official google example. My dll and lib are compiled by using vs2013.
Figure 1 below shows the pepper plugins that I loaded on chrome version 64.
Figure 2, I use Qt official Examples "simplebrowser.pro", but did not load the pepper plugins. -
-
First of all, thank you very much for your reply. Moreover, I hope that you will give me a clear explanation of your solution to this problem. We should have a time difference of 12 hours. We cannot communicate in time. I hope you will speak more of your opinion.
-
@maximus SOLVED,thank you very much!
-
Cheers! Happy it worked.
I had issues myself, it's not easy to debug when it goes wrong!Max