New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Getting Widevine to work on all platforms with Electron 5.0.0 #20
Comments
I got maintainer on the |
Please give getting it working on Linux with the latest Electron a shot and see if you can get it to work cause I am out of ideas or am just missing something, somewhere. |
I think the files from the dl.google.com server might be for Firefox. As Google Chrome also has a Edit: looks like it is not included anymore? Hmm. This needs further investigation |
It might be worth testing that then. I just find it annoying and weird that the Widevine works on Mac while not on Linux. I also tried extracting the Widevine from Chromium on my Linux machine and I could not get that working along with the direct Google download. The documentation page you linked (which I have read hundreds of time) is also outdated since the only working way (for Mac) requires setting the folder as the Widevine path and not the specific files. You can't set it as the same files as the documentation because Widevine (at least in Chrome) is not distributed with the same files anymore. If it is even possible and we get this working it might be worth doing a PR upstream to that documentation, to help people in the future as this seem like something quite a few people have struggled with throughout the versions of Electron. |
It actually seems like the command line flag for widevine is ignored. As even invalid paths don't cause any errors. I also extracted the widevine library from Google Chrome and tried using that instead, but with no success. This may very well be an upstream bug. |
It is really annoying that it doesn't produce errors when you mismatch versions or set an invalid path. The only way to tell if it is working is to test content or a DRM feature test website. It looks like nothing much is happening upstream which is quite annoying. |
This older project (using Electron 1.6.x) uses this adapter lib, too. So i am unsure, if it is actually required. |
But that can't be it, as the macOS package does not contain any adapter lib either. |
I don't know if it is required. I am leaning on the side of it not being required because the new working Mac version is missing one its files like Linux but this is only a guess and there aren't many public docs to help, thanks DRM!!!! All the other projects I searched for were using super old versions of Electron and did not help me much. |
Cool, thanks for putting that upstream. Hopefully, someone comes back with a solution or something that leads us in the correct direction! |
Looks like I overlooked something in the official documentation:
Looks like there is more to it than just loading that one library. They later refer to an Electron fork that is signed like this called castLabs Electron. Using that fork instead of the official Electron enables Widevine. I have a branch on my fork, where I use the fork instead.
They also say that they support Windows and macOS, but I can confirm that it also works on Linux. |
I originally assumed that was the issue until MacOS was working on the latest Electron then I ruled it out cause it wouldn't make sense for a DRM feature like that to act differently between platforms (but I could be wrong). I applied for a VMP cert and unsurprising haven't got a reply and am not expecting one but it was worth a shot, in the Electron issues about Widevine people have reported it taking years to get certs and being an open source and small project we probably can't get them. The other thing about the message in the documentation is the Electron version being v1.8.0 but it is working on 4.x.x which also doesn't make sense. |
Brave has working Widevine (If you enable it in the browser), it's not Electron but it is javascript and they are only loading a single file as can be seen here. I am going to try the Widevine they are downloading it and see if it works in Electron. |
Nope that didn't help they use another URL but it seems to redirect to the Google downloads page that is already being used. |
@oscartbeaumont How did you get this node module to work on macOS? I'm not able to get it to work using electron 5.0.0 (but I probably just did something wrong). I did |
Look at the example code but you probably forgot to enable plugins and disable node integration on the browser window. Please also be aware that module is temporary and I will publish a proper node module once I get it working on Linux. |
This is now a top priority with issue #31 which means without this update the app is currently not functional. This may mean sadly having to push the new version mac app (which is the only platform supporting the update) and ignoring other platforms until they can be fixed. I really don't want to do that (especially with the ~5000 active installs from snapcraft) but it may be the only option. |
Anything could be done to make the app working again for linux? I just noticed the issue now... |
The Linux version is now Electron |
Ok I understand so now what help do you need to fix this issue?
Le dim. 16 juin 2019 à 13:26, Oscar Beaumont <notifications@github.com> a
écrit :
… The Linux version is Electron 5.0.4 but the Mac version is 4.2.4 so it
still needs some work before closing the issue. This was caused by the
recent mess of a fix I implemented for fixing the broken Netflix player.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#20?email_source=notifications&email_token=ACLMOP37OWYAZ6SZAEK2HYDP2YPOXA5CNFSM4HI4PYN2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXZK4JY#issuecomment-502443559>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ACLMOP7RZ6KLKVWEEXN7CZDP2YPOXANCNFSM4HI4PYNQ>
.
|
|
I am using electron 6 and can get working Netflix and Amazon prime under linux because of the widevine configuration. Is there a working solution or it is under development ? |
Which platform are you on and if you got it working can you share code? I will look into this today and get back to you. |
Hi, sorry, it was my error in the previous post. |
I have been working really hard but am not aware of a solution for Mac (or Windows) that works above 4.2.4. Linux is working with electron |
If you have questions about implementing Widevine in your own app look at this apps codebase or reach out via email. You can find it on my profile or website. |
I have searched for a way to implement Widevine with modern Electron versions and found out, that the best way would be to package it ourselves. We would need to obtain versions of the Chrome Browser for each platform we build for and extract the widevinecdm library files. There are instructions here.
The text was updated successfully, but these errors were encountered: