Setting up Widevinecdm for firefox-esr (following the procedure described at the link: Widevine on Mobile/ARM Linux | Luigi311)
- On the phone in console mode, do:
sudo apt install curl git python3 squashfs-tools
cd ~/Public
git clone ``https://github.com/AsahiLinux/widevine-installer.git
cd widevine-installer
- Find the directory where to import the library
export LIBDIR=$(dirname $(find /usr/lib* -name “firefox-esr” -type d))
echo “$LIBDIR”
- If the
LIBDIRstring is not empty, fix the installation script to take into account the firefox-esr version (not firefox). If the string is empty, firefox-esr is not installed
sed ‘s/firefox/firefox-esr/’ ./widevine-installer
- Run the script
sudo LIBDIR=“$LIBDIR” ./widevine-installer
-
Reboot the phone so that widevine is taken into account in firefox-esr.
-
If you haven’t already done so, you need to enable DRM in the firefox-esr options. To do so :
- Launch firefox-esr
- Type about:config in the url bar
- Find the browser.eme.ui.enabled parameter and set it to true (if it isn’t already). This will bring up a “Digital Rigths Management (DRM) Content Play DRM controlled content” checkbox
- Open the firefox-esr settings and check the checkbox that now appears above the “Firefox updates” section