Browser-laptop: Support optional Widevine for the ability to use Netflix

Created on 30 Jan 2016  路  36Comments  路  Source: brave/browser-laptop

Netflix will play on Safari without Silverlight or Flash, but it does not appear to be working on Brave. Might be user-agent related?

Qchecked-Win32 Qchecked-Win64 Qchecked-macOS plugiwidevine webcompat

Most helpful comment

First visit to Netflix:
screenshot 2016-10-25 00 52 07

After clicking on open preferences:
screenshot 2016-10-25 00 52 36

To install just click the switch.

Trying to view a vide on Netflix after that:
screenshot 2016-10-25 00 53 26

Working Netflix via Wideivne:
screenshot 2016-10-25 00 53 58

All 36 comments

Seems likely it would be easy to support different user agents per domain, probably best integrated into the SiteHacks module.

Here's a screen shot of what I see when attempting to view a video in Brave (without using any SiteHacks):

screen shot 2016-02-10 at 7 10 56 pm

The help center link, https://help.netflix.com/support/27451, suggests updating the WideVine (a Google company for DRM video) component, by going to chrome://components/, but that url does not work in Brave.

Played with user agent strings a bit:
iPad Safari: Asks you to get the app
Safari OSX: Asks you for silverlight
Chrome / Windows UA: Asks you to get silverlight plugin
Firefox / Windows: Sends you to enable DRM page on Mozilla support: https://support.mozilla.org/en-US/kb/enable-drm

Pepper support could be added here: https://github.com/atom/electron/issues/2085

@bbondy did you try desktop safari? It works for me and I don't have any plugins

it asks for silverlight with a simple UA change. Interesting that it works for you on safari without it though.

If there is some content that is not DRM'ed the Firefox UA w/ windows would give the HTML5 player that would work in those cases.

Experiencing the same issue as m141

I've gotten it to work on os x, Widevine and Flash on everything.

line 102 - frame.js
this.webview.setAttribute('plugins', 'true')
This is what i used to make the webview always have plugins, after that its just a matter of adding in the proper plugins and app.commandLine.appendSwitch.

I also for safe measures added
plugins: true
to appStore.js lines 124 and 215

If you'd like to see what i did for my app.commandLine i'd be happy to share :)
I managed to do all this without rebuilding electron or anything, just adding a few lines of code to the current files that brave is using.

Thanks @MegaUber! I think the issue around Widevine is distribution. I believe it works if you already have it installed (with Chrome), but if not I think it has to be manually installed right now. I know Widevine is free to use, but we need to be sure that we won't be liable for distribution license fees (which can likely be avoided by downloading on install vs bundling). Do you want to submit a PR?

Here is a link to a gist i put together that might or might not help if i did this right lol
and I'm sorry I'm kind of new to actually well sharing on github, what is PR?

Widevine && PepperFlash

Very helpful, thanks @MegaUber !
Given the gist you posted I'm going to mark this as good first bug for now in case someone wants to turn it into a pull request. We could do this task in parts.

I just submitted a PR for this. https://github.com/brave/browser-laptop/pull/1293

Should this be closed or not yet?

Still very much an issue. One could use the experimental Flash support, but that's clearly undesirable (I yearn for the day in which we could get rid of it for good).

I am Brazilian and I would like you to help me in this problem .. I can not in any way implement Widevine in browswer. My twitter @EuNlope

Algu茅m pode mandar a linha de c贸digo pra mim por gentileza? Someone can have the line of code for me please?

Still a major issue with amazon prime video too

Netflix is #37 on Alexa's most popular site index and this is obviously a dealbreaker for many browser users.

They decided whether or not to put the Widevine component in the next version or in future versions?

there was some concern about licensing fees for distribution, but it appears that widevine is free to use without fees

Can you tell me how I can add it to the browser ..?

there are some docs for electron https://github.com/electron/electron/blob/master/docs/tutorial/using-widevine-cdm-plugin.md
not sure what release it's scheduled for, but we have plans for support

OK thank you.

Still do not intend to add Widevine to the browser?

Barring some unforeseen catastrophe, it's "coming soon" :)
It's locked in I assure you, and I'll be all to happy to QA this feature!

Ok thanks, it is noteworthy that the Brave is on track, great browser ...

First visit to Netflix:
screenshot 2016-10-25 00 52 07

After clicking on open preferences:
screenshot 2016-10-25 00 52 36

To install just click the switch.

Trying to view a vide on Netflix after that:
screenshot 2016-10-25 00 53 26

Working Netflix via Wideivne:
screenshot 2016-10-25 00 53 58

Redoing screenshot play by play w/ Windows:

First encounter on Netflix:
screenshot 2016-10-25 01 02 07

After clicking on "Open Preferences":
screenshot 2016-10-25 01 02 34

After clicking the switch to on to install:
screenshot 2016-10-25 01 02 41

Next load on Netflix, per site allow:
screenshot 2016-10-25 01 04 08

After the per site allowed:
screenshot 2016-10-25 01 03 54

At last brought this to the browser .. Let's see how it behaves with the adoption of this plugin.

I'm running Brave 0.12.7 on Ubuntu 16.10 and I don't have the option "Enable Google Widevine support" on my Security panel.
Is Google Widevine available for Linux?
Well, as far as I can see, Linux users can't use Netflix on Brave yet.

@jaydson we got the Google blobs for Win and Mac in time for 0.12.7 but Linux is different. @bbondy can say more, but should have it in next release.

probably not next release but soon, and tracking it here:
https://github.com/brave/browser-laptop/issues/5282

Any updates on the linux release?

This is working and will be shipped in the release next week.
@darkdh and @bsclifton are the heros of the work :)

@kirkins our Linux support is tracked with https://github.com/brave/browser-laptop/issues/5282 which I believe @posix4e is working on 馃槃

Was this page helpful?
0 / 5 - 0 ratings