For what it’s worth, my understanding is that widevine is terrible, terrible software. Its purpose is to take away the freedom of technology and people. No one should use widevine, on a Librem 5 or on any other device.
I can understand circumstances where people have no other option and need to use it, so I’m glad for the collaboration on this thread. Just thought I’d throw in my two cents, in case someone reading this thread isn’t aware.
If the LIBDIR string 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