To have drm enabled and running in chromium on arm, you will need
libwidevinecdm.so
You can get libwidevinecdm.so library from Google recovery image for arm chromebook.
Download recovery image from https://cros.tech/device/elm - unzip image and mount using instructions below:
sudo losetup -Pf chromeos_13020.87.0_elm_recovery_stable-channel_mp-v2.bin
sudo mount -o ro /dev/loop0p3 /mnt/
Copy library libwidevinecdm.so to a newly created docker folder.
mkdir -p ~/docker/chromium-drm
cp /mnt/opt/google/chrome/libwidevinecdm.so ~/docker/chromium-drm/
Paste code below to a Docker file in a newly created docker folder.
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
FROM kur1er/chromium-arm32
COPY libwidevinecdm.so /opt/WidevineCdm/_platform_specific/linux_arm/
RUN chmod 755 /opt/WidevineCdm/_platform_specific/linux_arm/libwidevinecdm.so
run command to build docker image
docker build . -t local/chromium-drm
Run shell comand to watch drm movies on internet:
x11docker --newprivileges=yes --gpu --pulseaudio --hostdisplay -- --cap-add=SYS_CHROOT --cap-add=SYS_ADMIN local/chromium-drm /chromium.sh
download x11docker here: https://github.com/mviereck/x11docker
Usefull links:
link to check drm https://bitmovin.com/demos/drm
https://lemariva.com/blog/2020/06/raspberry-pi-amazon-prime-netflix-and-drm-solution
Content type
Image
Digest
Size
480 MB
Last updated
almost 6 years ago
docker pull kur1er/chromium-arm32