Widevine on branch 3359

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

Widevine on branch 3359

Postby edgardog » Wed Apr 18, 2018 1:42 pm

I can't seem to get widevine to load on branch 3359.
I call CefRegisterWidevineCdm (using a callback) and the callback comes back with: CEF_CDM_REGISTRATION_ERROR_NONE
So everything should be fine.
Nevertheless when I try to use shaka player I get
ERROR:cdm_module.cc(137) Error: PATH_TO_WIDEVINE: cannot open shared object file: Operation not permitted


I'm sure I'm calling CefRegisterWidevineCdm before CefInitialize (As mentioned on issue #2009).

I can't make it work with cefclient either (my own branch 3359 compile).

Is anybody else having the same issue?

I had no problems with the previous branch 3325.
On this particular branch (3359) I had to change some code I had in a function name LaunchExternalBrowser which depended on TID_PROCESS_LAUNCHER which was removed on this branch. It did a CefLaunchProcess. Could this be related to CefRegisterWidefineCdm not loading?
edgardog
Expert
 
Posts: 111
Joined: Mon Feb 01, 2016 2:05 pm

Re: Widevine on branch 3359

Postby magreenblatt » Wed Apr 18, 2018 4:17 pm

What OS? Where did you get the Widevine CDM binaries and manifest?
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: Widevine on branch 3359

Postby edgardog » Wed Apr 18, 2018 6:43 pm

magreenblatt wrote:What OS? Where did you get the Widevine CDM binaries and manifest?


Linux x64 Ubuntu 14.04.

The binaries I'm using come from Chrome 66 (released yesterday) and the manifest is the one that I used on the older branch (with the updated version number 1076).
I have been using this approach on CEF based on chrome 60 and 65 (64 bits) and one or two versions on 32 bits (older).
I double check everything, and the files seem to be ok.
I removed the manifest.json and the callback returns an error.
I believe the problem is that the widevine bin is loaded by the sandbox and it generates the Permission Error.

I'll try to debug it further.. maybe I'm just doing something wrong and have not realized it.
Maybe is something I removed to adjust for the TID_PROCESS_LAUNCHER removal.

Thanks
edgardog
Expert
 
Posts: 111
Joined: Mon Feb 01, 2016 2:05 pm

Re: Widevine on branch 3359

Postby magreenblatt » Wed Apr 18, 2018 7:03 pm

It's also possible that https://crbug.com/772160 broke it. Official 3359 branch builds should be available in a few days for testing.
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: Widevine on branch 3359

Postby edgardog » Thu Apr 19, 2018 9:25 am

I tried using the latest commit which bumped to 66.0.3359.117 and have the same issue using cefclient and loading widevine.
I'll try using the previous branch just to be sure I'm doing things right although the widevine binary between chrome 65 and 66 changes version so its not a good test.
edgardog
Expert
 
Posts: 111
Joined: Mon Feb 01, 2016 2:05 pm

Re: Widevine on branch 3359

Postby magreenblatt » Thu Apr 19, 2018 10:40 am

Is widevinecdmadapter.so still included with the Chrome installation? If not you'll need to copy the file from the CEF build and place it next to widevinecdm.so.
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: Widevine on branch 3359

Postby edgardog » Thu Apr 19, 2018 3:34 pm

I did include libwidevinecdmadapter.so along with libwidevinecdm.so and the manifest.json file.
Same setup (differen binaries since branch 3325 uses widevine 1.4.9.1070 and branch 3359 uses 1.4.9.1076) on branch 3325 does work. I recompile 3325 and remove all references to LaunchExternalBrowser (the legacy code I had that won't run in 3359) and widevine still works, so I don't think that code I removed is related.

For the time being I'm going with 3325 and I'll try again with a newer branch in a couple of weeks.

I do have my setup ready for test so if someone has the same problem or you manage to make it work on branch 3359 I can quickly test again.

Best Regards!
edgardog
Expert
 
Posts: 111
Joined: Mon Feb 01, 2016 2:05 pm

Re: Widevine on branch 3359

Postby magreenblatt » Tue Apr 24, 2018 3:52 am

Confirmed that Widevine appears to be broken in 3359 branch on Linux (it works on Windows). It should be fixed in the next branch.
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: Widevine on branch 3359

Postby magreenblatt » Fri May 04, 2018 4:23 am

magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm


Return to Support Forum

Who is online

Users browsing this forum: No registered users and 40 guests

cron