Ubuntu 19.10 Firefox can't play DRM content

I use Ubuntu 19.10 for 2 weeks now and I like it so far except that I have one little problem: The per-installed Firefox does not allow me to play DRM content media (and possible other media too).

i.e.

  • I cant play Spotify in Firefox. It gives me a DRM error.
  • Some youtube videos won't play giving me this error: screenshot YouTube
  • I also try to watch recorded lectures from my university but there too I get an error... I dont think the university uses DRM content screenshot videoplayer

Widevine by google and OpenH264 are both installed and DRM content is enabled in settings.

So I suspect it has to do with HTML5 video, anyone knows a fix?


Run the following commands

sudo apt install libavcodec-extra
sudo apt install ubuntu-restricted-extras

then restart Firefox. Solved the problem for me on Spotify and Netflix.

Credits goes to this Reddit post: https://www.reddit.com/r/Ubuntu/comments/e4mc98/firefox_cant_play_drm_content_on_ubuntu_1910/