Brief: Firefox now enables you to play DRM content. This means you can watch Netflix on Firefox in Linux without painful workarounds.

Perhaps the easiest way to watch Netflix on Linux is to install Google Chrome. For a long time, only Google Chrome was able to play Netflix videos on Linux. The main reason behind other prominent browsers such as Chromium and Firefox not playing Netflix videos relates to DRM.
DRM (Digital Rights Management) is the generic term used for technologies that control how users can use a digital media. The main aim is to protect the digital product from being copied, shared and pirated. It also enables the provider to restrict the content on their specific device.
For example, if you own a Kindle and ‘buy’ books from Amazon, you cannot read the eBook you bought on Amazon on a non-Amazon device such as Kobo. It’s as if you don’t even own the book you actually purchased. Issues like this are reasons why DRM has been constantly criticized by open source advocates.
In March 2017, Netflix announced the news that Netflix can be played on Firefox in Linux, without any gimmickry. All you have to do is to enable DRM.
How to play Netflix using Firefox on Linux
Today, if you try to play Netflix, you may see an error like this:

The error reads:
Whoops, something went wrong... Playback Error There appears to be a problem with Firefox that is preventing Netflix from starting playback. Please ensure that you are on the latest version of Firefox. Error Code: F7702-1003
The reason behind this error is that you don’t have DRM enabled and thus you are missing Widevine plugin to decode the DRM protected Netflix content. It is the same if you try playing Spotify web player.
Let me show you how to enable DRM content playback on Firefox to watch Netflix or play Spotify on Linux.
Step 0: Make sure that you have the media codecs
You need the right codecs (libavcodec-extra). You can install this in Ubuntu-based distributions using this command and then repeat the above mentioned procedure:
sudo apt install libavcodec-extra
If you are using Fedora or some other distribution not based on Debian/Ubuntu, you can use your distribution’s package manager to install it.
Step 1: Enable DRM
Open Firefox and type about:preferences#content in the address bar. Look for Digital Rights Management (DRM) Content field and check the box in front of Play DRM-controlled content.

This will start to install the Widevine plugin from Google. Depending on your network speed it will take a few minutes to install this add-on.
Step 2: Make sure that you have the required add-ons
It is always better to ensure that you have the right tools. Open a new tab in Firefox and type about:addons in the address bar. Make sure that you have Widevine and OpenH264 add-ons installed with ‘Always Active’ mode.

Restart Firefox if required. You should now be able to play Netflix or Spotify or other websites using DRM protected content.
What’s your say?
I know that DRM is a touchy issue and not everyone will be happy about Mozilla compromising on its earlier stand on DRM. But considering that EME is an HTML5 standard now, I think it was inevitable. At least, end users can play Netflix and Amazon Videos with Firefox now.
How about you? Did you manage to play Netflix on Firefox? Do share your experience.

Dear Abhishek, I tool clue from comment below by you in response to a query – “Could you try installing ffmpeg on Fedora? libavcodec is likely to be installed with it.” as CENTOS is similar to Fedora.
Thank you, Dear Abhishek – I am totally newbie as far as linux is concerned afterworking in windows for more than 30 years. Yet, with a little hard work and searching – I could follow your guidance and play Hotstar Video in Firefox 78.6.0 esr – Useful guidance indeed – OS: CentOS8 Stream – Kernel – Elrepo 5.10.9
Glad to know that, Dhawal. Enjoy Linux and Chill :)
hi. i dont have that DRM Checkbox under settings. iam using firefox 80 on ubuntu mate. Does anybody has an idea?
thanks
Did you scroll down a bit? You may also use the search option to search for DRM.
I cant find DRM either. I searched in the search bar and I am running the latest Firefox 84.0.2
Abhishek I have the latest version of firefox installed. I have play DRM-content enabled, I have Widevine and OpenH264 add-ons installed with ‘Always Active’ mode set and it still won’t work, so I use Google Chrome, works fine.
Are you using Ubuntu? Try installing ubuntu-restricted-extras package for more media codecs.