crybapp / portal

Service deployed on VM instances to launch browsers
MIT License
33 stars 12 forks source link

Widevine Component #58

Closed NootThePenguin closed 4 years ago

NootThePenguin commented 4 years ago

This allows the Netflix player to work, it's currently using a beta version of widevine. (I've tried multiple versions and it has to be this one)

Closes #43

69 commented 4 years ago

You could (and probably should) combine it into a single RUN command:

# Install Widevine component for Chromium
RUN wget https://dl.google.com/widevine-cdm/4.10.1582.1-linux-x64.zip && \
    unzip 4.10.1582.1-linux-x64.zip && \
    sudo mv libwidevinecdm.so /usr/lib/chromium && \
    sudo chmod 644 /usr/lib/chromium/libwidevinecdm.so && \
    rm 4.10.1582.1-linux-x64.zip LICENSE.txt manifest.json
69 commented 4 years ago

Cleaned up the snippet a bit and made so it fetches the latest version automatically:

# Install Widevine component for Chromium
RUN WIDEVINE_VERSION=$(wget --quiet -O - https://dl.google.com/widevine-cdm/versions.txt | tail -n 1) && \
    wget "https://dl.google.com/widevine-cdm/$WIDEVINE_VERSION-linux-x64.zip" -O /tmp/widevine.zip && \
    unzip -p /tmp/widevine.zip libwidevinecdm.so > /usr/lib/chromium/libwidevinecdm.so && \
    chmod 644 /usr/lib/chromium/libwidevinecdm.so && \
    rm /tmp/widevine.zip
JeDaYoshi commented 4 years ago

Thanks for your contribution -- I'll merge it now!