How to turn on Widevine?

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.

How to turn on Widevine?

Postby junetou » Thu Jul 09, 2020 4:10 am

Hello everyone. I want to know how to open Widevine, I called CefRegisterWidevineCdm before CefInitialize and CefRegisterWidevineCdm callback return CEF_CDM_REGISTRATION_ERROR_NONE, but when I tested it at https://bitmovin.com/demos/drm it showed that Widevine is not turned on, I need some help, thank your very much.I run on Mac10.15, cef branch is 3987,widevine version is 4.10.1192.0.
junetou
Newbie
 
Posts: 3
Joined: Thu Jul 09, 2020 3:49 am

Re: How to turn on Widevine?

Postby magreenblatt » Thu Jul 09, 2020 10:20 am

See the CefRegisterWidevineCdm documentation.
magreenblatt
Site Admin
 
Posts: 12382
Joined: Fri May 29, 2009 6:57 pm

Re: How to turn on Widevine?

Postby junetou » Thu Jul 09, 2020 9:12 pm

magreenblatt wrote:See the CefRegisterWidevineCdm documentation.

Thank you for your reply. After reading the document, I followed the instructions in the document, but I still don't know how to solve the problem. Can you provide some tips? Thank you
junetou
Newbie
 
Posts: 3
Joined: Thu Jul 09, 2020 3:49 am

Re: How to turn on Widevine?

Postby ndesktop » Fri Jul 10, 2020 3:47 am

Prepare the manifest, implement CefRegisterCdmCallback, call CefRegisterWidevineCdm and check what is OnCdmRegistrationComplete saying.
There is also an example in tests/cefclient/browser/drm_test.cc.
ndesktop
Master
 
Posts: 750
Joined: Thu Dec 03, 2015 10:10 am

Re: How to turn on Widevine?

Postby junetou » Tue Jul 14, 2020 9:37 pm

ndesktop wrote:Prepare the manifest, implement CefRegisterCdmCallback, call CefRegisterWidevineCdm and check what is OnCdmRegistrationComplete saying.
There is also an example in tests/cefclient/browser/drm_test.cc.

I have prepare manifestand,implement CefRegisterCdmCallback,and OnCdmRegistrationComplete say CEF_CDM_REGISTRATION_ERROR_NONE.But when I tested it at https://bitmovin.com/demos/drm it showed that Widevine is not load.
junetou
Newbie
 
Posts: 3
Joined: Thu Jul 09, 2020 3:49 am

Re: How to turn on Widevine?

Postby olzzen » Fri Sep 10, 2021 5:43 am

We have the same problem here on linux platform. Downloaded the widevinecdm.so, called CefRegisterWidevineCdm with a path where the necessary files are located before calling CefInitialize. The CefRegisterCmdCallback::OnCdmRegistrationComplete is called with a error_code == 0.
The page https://bitmovin.com/demos/drm says that no drm is available.

Used versions:
CEF: 91.1.19+ga92e5d5+chromium-91.0.4472.101
Widevine: 4.10.2209.1-linux-x64

Manifest:
Code: Select all
{
    "arch": "x64",
    "description": "Widevine Content Decryption Module",
    "manifest_version": 2,
    "name": "WidevineCdm",
    "os": "linux",
    "version": "4.10.2209.1",
    "x-cdm-codecs": "vp8,vp09,avc1,av01",
    "x-cdm-host-versions": "10",
    "x-cdm-interface-versions": "10",
    "x-cdm-module-versions": "4",
    "x-cdm-persistent-license-support": false
}


Any suggestions?
olzzen
Techie
 
Posts: 46
Joined: Fri Oct 23, 2015 1:01 am

Re: How to turn on Widevine?

Postby magreenblatt » Fri Sep 10, 2021 8:18 am

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

Re: How to turn on Widevine?

Postby olzzen » Mon Sep 13, 2021 12:50 am

From the groups conversation:
... Support for Widevine in CEF has now been enabled by default starting with M93 and the required CDM module will downloaded automatically shortly after application start. ...


Is there theoretically speeking a way to ship the CDM module with the client application instead of an automated download?
olzzen
Techie
 
Posts: 46
Joined: Fri Oct 23, 2015 1:01 am

Re: How to turn on Widevine?

Postby magreenblatt » Mon Sep 13, 2021 1:55 am

The CDM will be loaded from disk at startup if it already exists in the correct directory location. An installer could do that.
magreenblatt
Site Admin
 
Posts: 12382
Joined: Fri May 29, 2009 6:57 pm

Re: How to turn on Widevine?

Postby olzzen » Mon Sep 13, 2021 6:46 am

Hm, reading the docs it seems that now there is no possibility to change only the path where widevine is located, like the *path* parameter to CefRegisterWidevineCdm. Do we see this correctly?
olzzen
Techie
 
Posts: 46
Joined: Fri Oct 23, 2015 1:01 am

Next

Return to Support Forum

Who is online

Users browsing this forum: Google [Bot] and 25 guests