Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 523476 - www-plugins/chrome-binary-plugins - add widevine DRM for Netflix support
Summary: www-plugins/chrome-binary-plugins - add widevine DRM for Netflix support
Status: RESOLVED DUPLICATE of bug 522614
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Jason A. Donenfeld
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-09-22 19:55 UTC by Mike Lothian
Modified: 2014-09-25 03:55 UTC (History)
2 users (show)

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


Attachments
chrome-binary-plugins-39.0.2159.4_alpha1.ebuild (chrome-binary-plugins-39.0.2159.4_alpha1.ebuild,2.82 KB, text/plain)
2014-09-22 19:56 UTC, Mike Lothian
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Lothian 2014-09-22 19:55:11 UTC
Add in support for the widevine DRM so Netflix will work

Reproducible: Always
Comment 1 Mike Lothian 2014-09-22 19:56:12 UTC
Created attachment 385306 [details]
chrome-binary-plugins-39.0.2159.4_alpha1.ebuild
Comment 2 Mike Lothian 2014-09-22 20:12:54 UTC
I can get http://downloads.webmproject.org/demos/adaptive-eme/index.html working but Netflix complains about the component not being listed in chrome://components it is however listed in chrome://plugins/
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2014-09-22 21:01:47 UTC
Comment on attachment 385306 [details]
chrome-binary-plugins-39.0.2159.4_alpha1.ebuild

--- chrome-binary-plugins-39.0.2159.4_alpha1.ebuild     2014-09-17 02:32:17.000000000 +0200
+++ -   2014-09-22 23:01:19.970828957 +0200
@@ -46,7 +46,7 @@
 fi

 LICENSE="google-chrome"
-IUSE="+flash"
+IUSE="+drm +flash"
 RESTRICT="bindist mirror strip"

 for x in 0 beta stable unstable; do
@@ -74,9 +74,23 @@
 src_install() {
        local version flapper

-       insinto /usr/$(get_libdir)/chromium-browser/
+       if use drm; then
+               insinto /usr/$(get_libdir)/chromium-browser/pepper/
+               doins libwidevinecdmadapter.so
+               doins libwidevinecdm.so
+
+               version="1.4.6.667"
+               flapper="${ROOT}usr/$(get_libdir)/chromium-browser/pepper/libwidevinecdmadapter.so"
+               echo -n "CHROMIUM_FLAGS=\"\${CHROMIUM_FLAGS} " > widevine
+               echo -n "--register-pepper-plugins=$flapper" >> widevine
+               echo "#WidevineContentDecryptionModule#Enables_Widevine_licenses_for_playback_of_HTML_audio/video_content#$version;application/x-ppapi-widevine-cdm\"" >> widevine

+               insinto /etc/chromium/
+               doins widevine
+       fi
+
        if use flash; then
+               insinto /usr/$(get_libdir)/chromium-browser/
                doins -r PepperFlash

                # Since this is a live ebuild, we're forced to, unfortuantely,


Also, "unfortuantely".
Comment 4 Paweł Hajdan, Jr. (RETIRED) gentoo-dev 2014-09-25 03:55:19 UTC

*** This bug has been marked as a duplicate of bug 522614 ***