Here's How to Watch Netflix on Linux Using Firefox

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

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 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:

Netflix playback error on Firefox

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 ffmpeg

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, click on the Hamburger menu and click Settings.

firefox settings
Go to Settings in Firefox

In the settings, search for Digital Rights Management (DRM) Content field and check the box in front of Play DRM-controlled content.

drm firefox
Enable DRM playback on Firefox

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.

Playing Netflix on Firefox on Linux

Restart Firefox if required. You should now be able to play Netflix or Spotify or other websites like Hulu on Linux using DRM protected content.

Bonus Tip: Play Netflix in full HD

By default, Netflix plays only 720p at max in the Firefox browser. What a bummer! 720p is not even considered HD these days.

The good thing is that you can make Netflix stream full HD (1080p) on Firefox using an extension called Netflix 1080p.

🚧
The extension is no longer available.
firefox netflix 1080p extension

Install the extension, restart Firefox and enjoy Netflix in full HD.

💡
If you want to watch the US version of Netflix outside the US, you can use a premium DNS service like Unlocator to access it anywhere in the world. I use it to stream Murder She Wrote series on Peacock which is not available in India.

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.

About the author
Abhishek Prakash

Abhishek Prakash

Created It's FOSS 11 years ago to share my Linux adventures. Have a Master's degree in Engineering and years of IT industry experience. Huge fan of Agatha Christie detective mysteries 🕵️‍♂️

Become a Better Linux User

With the FOSS Weekly Newsletter, you learn useful Linux tips, discover applications, explore new distros and stay updated with the latest from Linux world

itsfoss happy penguin

Great! You’ve successfully signed up.

Welcome back! You've successfully signed in.

You've successfully subscribed to It's FOSS.

Success! Check your email for magic link to sign-in.

Success! Your billing info has been updated.

Your billing was not updated.