Page 1 of 3

How to turn on Widevine?

PostPosted: Thu Jul 09, 2020 4:10 am
by junetou
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.

Re: How to turn on Widevine?

PostPosted: Thu Jul 09, 2020 10:20 am
by magreenblatt
See the CefRegisterWidevineCdm documentation.

Re: How to turn on Widevine?

PostPosted: Thu Jul 09, 2020 9:12 pm
by junetou
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

Re: How to turn on Widevine?

PostPosted: Fri Jul 10, 2020 3:47 am
by ndesktop
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.

Re: How to turn on Widevine?

PostPosted: Tue Jul 14, 2020 9:37 pm
by junetou
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.

Re: How to turn on Widevine?

PostPosted: Fri Sep 10, 2021 5:43 am
by olzzen
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?

Re: How to turn on Widevine?

PostPosted: Fri Sep 10, 2021 8:18 am
by magreenblatt

Re: How to turn on Widevine?

PostPosted: Mon Sep 13, 2021 12:50 am
by olzzen
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?

Re: How to turn on Widevine?

PostPosted: Mon Sep 13, 2021 1:55 am
by magreenblatt
The CDM will be loaded from disk at startup if it already exists in the correct directory location. An installer could do that.

Re: How to turn on Widevine?

PostPosted: Mon Sep 13, 2021 6:46 am
by olzzen
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?