Widevine activate issue

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 activate issue

Postby SomeDev » Wed Nov 23, 2016 3:05 am

I try to build my own Cef release with proprietary codecs, Flash and Widevine. But I can't. I know this is one of the most frequently asked questions, but I think some circumstances have changed since last suitable answer.
I'm using windows embedded industry pro 8.1 with VS2015 Update 3 installed.

I use D:\cef as root for my build experiments.
0) I prepared everything as needed following https://bitbucket.org/chromiumembedded/ ... ndBuilding
1) I set "set GYP_DEFINES=proprietary_codecs=1 ffmpeg_branding=Chrome enable_widevine=1" to allow what i need in build
2) I build project using this command "python automate.py --download-dir=sources --x64-build"
3) After the build, I copy pepperflash plugin binaries and run
cefclient --enable-widevine-cdm --cache-path=D:\temp --ppapi-flash-path=pepflashplayer64_23_0_0_207.dll --ppapi-flash-version=23.0.0.207
codecs and flash works, but widevine not.

I tried cefclient --cache-path=D:\temp --ppapi-flash-path=pepflashplayer64_23_0_0_207.dll --ppapi-flash-version=23.0.0.207
--enable-widevine-cdm --widevine-cdm-path=WidevineCdm\_platform_specific\win_x64\widevinecdmadapter.dll


But with same result

https://shaka-player-demo.appspot.com/demo/ also shows me that Widevine is absent, and when I look in Plugins or in DRM tabs of cefclient - I see that Widevine is not present in my build.

What have I done wrong?
SomeDev
Newbie
 
Posts: 7
Joined: Wed Nov 23, 2016 2:45 am

Re: Widevine activate issue

Postby magreenblatt » Wed Nov 23, 2016 9:11 am

You're not specifying `--branch=XXXX` to automate-git.py so it's building master. GYP is no longer supported so you need to use the GN configuration. See https://bitbucket.org/chromiumembedded/ ... ckStart.md.

On Windows you need a system installation of PPAPI Flash from https://get.adobe.com/flashplayer/otherversions/. Enable it with the `--enable-system-flash` command-line flag.

For Widevine requirements see https://bitbucket.org/chromiumembedded/cef/issues/2009.
magreenblatt
Site Admin
 
Posts: 12404
Joined: Fri May 29, 2009 6:57 pm

Re: Widevine activate issue

Postby SomeDev » Thu Nov 24, 2016 10:42 am

magreenblatt wrote:You're not specifying `--branch=XXXX` to automate-git.py so it's building master. GYP is no longer supported so you need to use the GN configuration. See https://bitbucket.org/chromiumembedded/ ... ckStart.md.

On Windows you need a system installation of PPAPI Flash from https://get.adobe.com/flashplayer/otherversions/. Enable it with the `--enable-system-flash` command-line flag.

For Widevine requirements see https://bitbucket.org/chromiumembedded/cef/issues/2009.

Thank you!
I rebuild the solution on branch 2785, with parameters "set GN_DEFINES=proprietary_codecs=1 ffmpeg_branding=Chrome enable_widevine=1"
following the instructions. Version works fine, but widevine still not working.
If I run it "cefclient --cache-path=D:\temp --enable-system-flash --enable-widevine-cdm" pepper flash plugin is present, but widevine not.
if I run "cefclient --cache-path=D:\temp --enable-system-flash --register-pepper-plugins="WidevineCdm\_platform_specific\win_x64\widevinecdmadapter.dll;application/x-ppapi-widevine-cdm" it is visible on plugins page, but still not working with Shaka player
If I set CDM path on DRM page "WidevineCdm\_platform_specific\win_x64" and I got error message "Missing manifest file WidevineCdm\_platform_specific\win_x64\manifest.json (2)"
SomeDev
Newbie
 
Posts: 7
Joined: Wed Nov 23, 2016 2:45 am

Re: Widevine activate issue

Postby magreenblatt » Thu Nov 24, 2016 1:28 pm

You need to create a manifest file as specified in the documentation: https://bitbucket.org/chromiumembedded/ ... ugin.h-167
magreenblatt
Site Admin
 
Posts: 12404
Joined: Fri May 29, 2009 6:57 pm

Re: Widevine activate issue

Postby SomeDev » Fri Nov 25, 2016 3:11 am

magreenblatt wrote:You need to create a manifest file as specified in the documentation: https://bitbucket.org/chromiumembedded/ ... ugin.h-167

Thank you!
When I created this manifest.json (as written by the link) nothing works
Code: Select all
{
  "os": "win",
  "arch": "x64",
  "version": "1.4.8.903",
  "x-cdm-module-versions": "4",
  "x-cdm-interface-versions": "8",
  "x-cdm-host-versions": "8",
  "x-cdm-codecs": "vp8,vp9.0,avc1"
}


but when I merged my manifest with existing google chrome manifest it begins to work

Code: Select all
{
  "manifest_version": 2,
  "update_url": "https://clients2.google.com/service/update2/crx",
  "name": "WidevineCdm",
  "description": "Widevine Content Decryption Module",
  "offline_enabled": false,
  "version": "1.4.8.903",
  "minimum_chrome_version": "43.0.2340.0",
  "x-cdm-module-versions": "4",
  "x-cdm-interface-versions": "8",
  "x-cdm-host-versions": "8",
  "x-cdm-codecs": "vp8,vp9.0,avc1",
  "icons": {
    "16": "imgs/icon-128x128.png",
    "128": "imgs/icon-128x128.png"
  },
  "os": "win",
  "arch": "x64"
}


But when I play any Widevine DRM assets from https://shaka-player-demo.appspot.com/demo/
I got this error Shaka Error DRM.FAILED_TO_GENERATE_LICENSE_REQUEST (The initialization data type is not supported by the key system.) video begins playing and stops on 10-12 second.

I think I must add some more configurations? Or I am looking in wrong direction now?
SomeDev
Newbie
 
Posts: 7
Joined: Wed Nov 23, 2016 2:45 am

Re: Widevine activate issue

Postby amaitland » Fri Nov 25, 2016 6:01 am

Did you get permission from Google to access the CDN as per the issue posted above?
Maintainer of the CefSharp project.
amaitland
Virtuoso
 
Posts: 1291
Joined: Wed Jan 14, 2015 2:35 am

Re: Widevine activate issue

Postby SomeDev » Mon Nov 28, 2016 9:55 am

amaitland wrote:Did you get permission from Google to access the CDN as per the issue posted above?

Do you mean CDN infrastructure for downloading keys?
SomeDev
Newbie
 
Posts: 7
Joined: Wed Nov 23, 2016 2:45 am

Re: Widevine activate issue

Postby magreenblatt » Mon Nov 28, 2016 12:10 pm

SomeDev wrote:But when I play any Widevine DRM assets from https://shaka-player-demo.appspot.com/demo/
I got this error Shaka Error DRM.FAILED_TO_GENERATE_LICENSE_REQUEST (The initialization data type is not supported by the key system.) video begins playing and stops on 10-12 second.

This is expected behavior if you have not properly licensed Widevine support from Google. You can contact Google about Widevine issues via https://www.widevine.com/contact.html.
magreenblatt
Site Admin
 
Posts: 12404
Joined: Fri May 29, 2009 6:57 pm

Re: Widevine activate issue

Postby SomeDev » Thu Dec 01, 2016 10:43 am

magreenblatt wrote:
SomeDev wrote:But when I play any Widevine DRM assets from https://shaka-player-demo.appspot.com/demo/
I got this error Shaka Error DRM.FAILED_TO_GENERATE_LICENSE_REQUEST (The initialization data type is not supported by the key system.) video begins playing and stops on 10-12 second.

This is expected behavior if you have not properly licensed Widevine support from Google. You can contact Google about Widevine issues via https://www.widevine.com/contact.html.

Thank you for advice! I have write them an e-mail, so I think it will not be a problem.
SomeDev
Newbie
 
Posts: 7
Joined: Wed Nov 23, 2016 2:45 am

Re: Widevine activate issue

Postby edgardog » Tue May 23, 2017 9:07 pm

Were you lucky contacting Google for licensing widevine?
I get the same error using the binaries from chrome (matching version). I hate having to use chrome for watching Netflix when CEF client is great but Netflix wont run.
It used to work great on 32bits.
edgardog
Expert
 
Posts: 111
Joined: Mon Feb 01, 2016 2:05 pm


Return to Support Forum

Who is online

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