oscartbeaumont / ElectronPlayer

An Electron Based Web Video Services Player. Supporting Netflix, Youtube, Twitch, Floatplane, Hulu And More
MIT License
489 stars 93 forks source link

Unable to stream Hulu #43

Open inman-sebastian opened 4 years ago

inman-sebastian commented 4 years ago

First of all, thanks for the great application! It has a ton of potential. I recently forked ElectronPlayer to play around with it and the first thing I did was try and watch something on Hulu. The preroll videos play just fine, but once the stream starts, I get the following error on playback:

Update Your Browser Hulu Error Code: P-EDU129

I went into the source code and changed the browser user agent to the most recent version of Chrome on MacOS, but unfortunately the error code persisted.

Any suggestions on why this might be happening? YouTube worked great, and so did Twitch - unfortunately I don't have a Netflix account to test with, so as far as I know, Hulu is the only service not working.

Thanks in advance.

oscartbeaumont commented 4 years ago

I do not have a Hulu account and so haven't tested it but it was confirmed working when it was added. Hulu (and Netflix) both use a DRM module called Widevine (created by Google). For the app to support Widevine the Mac version runs a very old version of Electron (and hence Chromium) but it is the latest version which I can get to work. This browser version is not supported by Hulu for their player. Recently this same thing happened with Netflix and I was able to (through pure luck) upgrade the Mac version just enough to restore Netflix and the Linux version now handles Widevine differently and in a way which can run the latest version of Electron although this approach only worked on Linux. I would recommended if you want try to fix this is to get a newer version of Electron working. I haven't tried it in a few months but my guess is it would be very difficult but keep me updated if you make any progress. I am currently really busy and don't have the time to try and fix this, Sorry for not being able to help that much. I will get some free time closer to Christmas and I will see if I can fix it but I don't think I will succeed as I have been trying to fix this for months.

nodefive commented 4 years ago

Netflix works! I've tested. Amazon doesn't, which is why I came. :(

oscartbeaumont commented 4 years ago

This is going to be fixed in version 3.0.0 it is currently in very early development and its changes core from Electron to NativeKit (also built by me) for the Mac version which fixes the DRM issues. I have released a downloadable version of the alpha here which you can use in the meantime until the final release.