RegisterWidevineCdm Doesn´t work

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.

RegisterWidevineCdm Doesn´t work

Postby xored » Wed Jun 03, 2020 3:58 am

Hi!

I tried to load Spotify, but it tells me to turn on protected content in Chrome. All right.
So I took the WidevineCdm from here: C:\Program Files (x86)\Google\Chrome\Application\83.0.4103.61\WidevineCdm
and put it into my application folder. My CefSharp is on Version 83, like my Chrome is.

Now, this is my code to activate it:

Code: Select all
 Public Sub New()
        InitializeComponent()
        Dim settings As New CefSettings()
        settings.CefCommandLineArgs.Add("persist_session_cookies", "1")
        settings.CefCommandLineArgs.Add("enable-automatic-password-saving", "enable-automatic-password-saving")
        settings.CefCommandLineArgs.Add("enable-password-save-in-page-navigation", "enable-password-save-in-page-navigation")
        settings.CefCommandLineArgs.Add("cache-path", "C:\Cache")
        settings.CefCommandLineArgs.Add("enable-widevine-cdm", "1")
        settings.CefCommandLineArgs.Add("enable-npapi", "1")
        settings.CefCommandLineArgs.Add("allow-running-insecure-content", "1")
        settings.CefCommandLineArgs.Add("enable-media-stream", "1")

        CefSharp.Cef.Initialize(settings)
        Cef.RegisterWidevineCdm(Path.Combine(Environment.CurrentDirectory, "WidevineCdm"))

        browser = New ChromiumWebBrowser("https://open.spotify.com/track/3nS9a01VvXHQriLqJYwRqG?context=spotify%3Aplaylist%3A37i9dQZF1DX0XUsuxWHRQd&si=MrlaxpmSTW6czvBj4P_snw") With {
            .Dock = DockStyle.Fill
        }
        panBrowser.Controls.Add(browser)
    End Sub



When I use the original Chromes manisfest, I get "os is missing in manisfest", when I take this one, I don´t get the error:

Code: Select all
{
  "manifest_version": 2,
  "update_url": "https://clients2.google.com/service/update2/crx",
  "name": "WidevineCdm",
  "description": "Widevine Content Decryption Module",
  "version": "4.10.1192.0",
  "minimum_chrome_version": "68.0.3430.0",
  "x-cdm-module-versions": "4",
  "x-cdm-interface-versions": "10",
  "x-cdm-host-versions": "10",
  "x-cdm-codecs": "vp8,vp9.0,avc1",
  "x-cdm-persistent-license-support": true,
  "x-cdm-supported-encryption-schemes": ["cenc","cbcs"],
  "icons": {
    "16": "imgs/icon-128x128.png",
    "128": "imgs/icon-128x128.png"
  },
  "os": "win",
  "arch": "x64"
}



My problem now is, when I navigate to:
http://bitmovin.com/demos/drm

It tells me Widevine is disabled. On my original Chrome, it´s enabled. I dont get any Cdm related errors, so I don´t know what to do.. Spotifys Webplayer still isn´t working.

Thats the content of the Cdm folder:
Image

Any tips?..
Thank you :)
Best regards,
xored
xored
Newbie
 
Posts: 4
Joined: Wed Jun 03, 2020 3:49 am

Re: RegisterWidevineCdm Doesn´t work

Postby magreenblatt » Wed Jun 03, 2020 7:52 pm

You need a manifest as described here. You will also need a build of CEF with proprietary codecs enabled.
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: RegisterWidevineCdm Doesn´t work

Postby xored » Thu Jun 04, 2020 12:40 am

Hello, my manisfest contains all the values, doesn´t it?..

And do I need a license to get that cef built with Widevine?
Thank you :)
xored
Newbie
 
Posts: 4
Joined: Wed Jun 03, 2020 3:49 am

Re: RegisterWidevineCdm Doesn´t work

Postby magreenblatt » Thu Jun 04, 2020 1:39 pm

Well, you can't just copy the example values. You need to use the values that actually match the CDM binaries. I suggest you download the Spotify client and use the Widevine manifest/binaries that it provides.
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: RegisterWidevineCdm Doesn´t work

Postby xored » Fri Jun 05, 2020 1:07 am

Thank you for the hint, but my Spotify Client doesn´t have WideVine:

Image

I looked into each folder..
Do you know where it is?
Thank you :)
xored
Newbie
 
Posts: 4
Joined: Wed Jun 03, 2020 3:49 am

Re: RegisterWidevineCdm Doesn´t work

Postby magreenblatt » Fri Jun 05, 2020 11:28 am

xored wrote:Do you know where it is?

AppData\Local\Spotify\User Data
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: RegisterWidevineCdm Doesn´t work

Postby xored » Mon Jun 08, 2020 1:08 am

Thank you, but with their DLL and Manisfest I just get:

[0608/080215.813:ERROR:widevine_loader.cc(384)] Widevine CDM registration failed;
xored
Newbie
 
Posts: 4
Joined: Wed Jun 03, 2020 3:49 am


Return to Support Forum

Who is online

Users browsing this forum: Google [Bot], Majestic-12 [Bot] and 41 guests