Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 635532 - www-client/qutebrowser - Add USE=widevine to pull in www-plugins/chrome-binary-plugins
Summary: www-client/qutebrowser - Add USE=widevine to pull in www-plugins/chrome-binar...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Guillaume Seren
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2017-10-26 18:39 UTC by Lars
Modified: 2021-10-15 15:53 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lars 2017-10-26 18:39:06 UTC
Please add widevine USE flag to pull in www-plugins/chrome-binary-plugins[widevine]:


    RDEPEND="${COMMON_DEPEND}
        ...
        widevine? ( www-plugins/chrome-binary-plugins[widevine] )
    "

This is needed to watch DRM restricted content.
Comment 1 Justin Bronder (RETIRED) gentoo-dev 2017-10-29 00:51:39 UTC
Thanks Lars,

Do you know of a site where I could test this?  Is just having www-plugins/chrome-binary-plugins[widevine] enough or does the qutebrowser config need updating as well?  Also, do you know if the version of the plugin matters?
Comment 2 Lars 2017-10-29 21:47:18 UTC
(In reply to Justin Bronder from comment #1)
> Do you know of a site where I could test this?

Yes, https://bitmovin.com/mpeg-dash-hls-drm-test-player/

> Is just having www-plugins/chrome-binary-plugins[widevine] enough or does the qutebrowser config need updating as well?

It is enough as long as qtwebengine is used as backend.

> Also, do you know if the version of the plugin matters?

Yes, it matters. Unfortunately it broke with the update of www-plugins/chrome-binary-plugins from version 61.0.3163.100 to 62.0.3202.62. See https://bugreports.qt.io/browse/QTBUG-64071
Comment 3 Justin Bronder (RETIRED) gentoo-dev 2017-11-03 00:23:14 UTC
(In reply to Lars from comment #2)
> (In reply to Justin Bronder from comment #1)
> > Do you know of a site where I could test this?
> 
> Yes, https://bitmovin.com/mpeg-dash-hls-drm-test-player/

Thanks

> 
> > Is just having www-plugins/chrome-binary-plugins[widevine] enough or does the qutebrowser config need updating as well?
> 
> It is enough as long as qtwebengine is used as backend.
> 
> > Also, do you know if the version of the plugin matters?
> 
> Yes, it matters. Unfortunately it broke with the update of
> www-plugins/chrome-binary-plugins from version 61.0.3163.100 to
> 62.0.3202.62. See https://bugreports.qt.io/browse/QTBUG-64071

So, I'm hesitant to add this until we have something that works. 61.0.3163.100 isn't in the tree anymore so I can't lock the version.

Mind pinging me here when that QT bug is fixed if I don't notice it first?
Comment 4 Guillaume Seren 2019-12-12 17:36:12 UTC
Hello,
I am help solving this issue but I have not access to netflix account,
so what could be great is someone with an account to test.

There is some discussion about it on the qutebrowser github https://github.com/qutebrowser/qutebrowser/issues/3953

So I think the widevine blob should be in dev-qt/qtwebengine package.
Comment 5 Lars 2020-01-06 22:53:01 UTC
(In reply to Guillaume Seren from comment #4)
> Hello,
> I am help solving this issue but I have not access to netflix account,
> so what could be great is someone with an account to test.

I have a netflix account. I opened this issue. Meanwhile I switched back to firefox with pentadactyl add-on. But I could test netflix with qutebrowser if it helps.
Comment 6 Florian Bruhin 2020-05-11 19:11:47 UTC
FWIW from what I've seen so far, when it works with https://bitmovin.com/mpeg-dash-hls-drm-test-player/ (which doesn't need an account), it should work on Netflix as well.
Comment 7 Guillaume Seren 2020-05-11 21:05:14 UTC
Hello,
I just try this url https://bitmovin.com/mpeg-dash-hls-drm-test-player/ with qutebrowser and it works.
I don't have the www-plugins/chrome-binary-plugins installed btw.

Please lars test this, and report back more details on the issue.
Comment 8 Marcel Schilling 2020-05-12 04:40:50 UTC
I get a DRM_NO_KEY_SYSTEM on that link using qutebrowser.
Let me know if I can help by providing more information or testing specific configurations.
Comment 9 Takuya Wakazono 2021-01-19 18:41:57 UTC
After installing www-plugins/chrome-binary-plugins, you should be able to use widevine by doing one of the following

- Patch qtwebengine to add the widevine path. See https://github.com/qt/qtwebengine/blob/dev/src/core/content_client_qt.cpp#L352-L362

- In qutebrowser :set qt.args '["widevine-path=/usr/lib64/chromium-browser/WidevineCdm/_platform_specific/linux_x64/libwidevinecdm.so"]'
Comment 10 Stefan Strogin gentoo-dev 2021-06-30 01:17:29 UTC
I have opened https://bitmovin.com/demos/drm in qutebrowser, it shows «Detected [Chrome], using widevine». The video here https://integration.widevine.com/player is played as well. I have no chrome-binary-plugins installed. I don't know how it works. I have no Netflix account.
Comment 11 Marcel Schilling 2021-06-30 09:27:23 UTC
The detection shows the same for me, but none of the two sites linked above are able to play the video for me.
Comment 12 Ionen Wolkens gentoo-dev 2021-09-21 13:59:01 UTC
I certainly needed the plugin here, but there's a reason why it can work without that specific package.

If you have google-chrome installed qtwebengine will load it from /opt/google/chrome, I think it can also load it from chromium[widevine] paths but haven't tried -- possibly other sources, haven't checked code.

qtwebengine simply doesn't ship with this, so if it works it's coming from /somewhere/

Feel it'd be more solid to depend on the plugins and set a qtargs system default only when flag is enabled (otherwise it breaks using /opt/google/chrome).
Comment 13 Larry the Git Cow gentoo-dev 2021-10-15 15:53:36 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fd172713cff3fe36c322fd9718ae972d3270dcd8

commit fd172713cff3fe36c322fd9718ae972d3270dcd8
Author:     Ionen Wolkens <ionen@gentoo.org>
AuthorDate: 2021-10-12 17:20:15 +0000
Commit:     Ionen Wolkens <ionen@gentoo.org>
CommitDate: 2021-10-15 15:43:51 +0000

    www-client/qutebrowser: add IUSE=widevine
    
    Modifying qtwebengine could be an option instead, but don't
    want to burden something as big as qtwebengine with more
    patches. Here it's very trivial to control and rebuild.
    
    Closes: https://bugs.gentoo.org/635532
    Signed-off-by: Ionen Wolkens <ionen@gentoo.org>

 profiles/arch/arm64/package.use.mask               |  1 +
 profiles/arch/x86/package.use.mask                 |  1 +
 www-client/qutebrowser/metadata.xml                |  2 ++
 www-client/qutebrowser/qutebrowser-2.3.1-r2.ebuild | 10 ++++++++--
 4 files changed, 12 insertions(+), 2 deletions(-)