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.

Re: How to turn on Widevine?

Postby magreenblatt » Mon Sep 13, 2021 6:56 am

olzzen wrote: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?

Correct.
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 8:08 am

That's too bad...
Tested with 93.1.11 everything works now.
Thanks for your effort!
olzzen
Techie
 
Posts: 46
Joined: Fri Oct 23, 2015 1:01 am

Re: How to turn on Widevine?

Postby amaitland » Mon Sep 13, 2021 2:43 pm

You can set the user data path, Widevine is download/loaded from a subfolder.

https://github.com/chromiumembedded/cef ... pes.h#L272
Maintainer of the CefSharp project.
amaitland
Virtuoso
 
Posts: 1290
Joined: Wed Jan 14, 2015 2:35 am

Re: How to turn on Widevine?

Postby olzzen » Tue Sep 14, 2021 1:07 am

You can set the user data path, Widevine is download/loaded from a subfolder.


Yes, we have already seen it, but that's not suitable for us as we want to only change the widevine path.
olzzen
Techie
 
Posts: 46
Joined: Fri Oct 23, 2015 1:01 am

Re: How to turn on Widevine?

Postby amaitland » Tue Sep 14, 2021 1:28 am

Include the dll with your application and copy it to the user data path folder at runtime.

You can still bundle the dll, you just need to handle it differently.
Maintainer of the CefSharp project.
amaitland
Virtuoso
 
Posts: 1290
Joined: Wed Jan 14, 2015 2:35 am

Re: How to turn on Widevine?

Postby olzzen » Tue Sep 14, 2021 5:38 am

In the related issue https://bitbucket.org/chromiumembedded/cef/issues/3149/ you mentioned the following:
Pass the --disable-component-update command-line flag to disable Widevine download and installation.


It seems that there is no such option in CefSettings. How do we have to set or pass the mentioned switch from within the client code?

Do we have to control it via ClientApp::OnBeforeChildProcessLaunch?
olzzen
Techie
 
Posts: 46
Joined: Fri Oct 23, 2015 1:01 am

Re: How to turn on Widevine?

Postby magreenblatt » Tue Sep 14, 2021 6:54 am

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

Re: How to turn on Widevine?

Postby olzzen » Tue Sep 14, 2021 7:12 am

magreenblatt wrote:Use OnBeforeCommandLineProcessing.


We have tested with OnBeforeChildProcessLaunch and it worked. But if the correct way is to use your suggested method we will use that instead.
Again, thank you!
olzzen
Techie
 
Posts: 46
Joined: Fri Oct 23, 2015 1:01 am

Re: How to turn on Widevine?

Postby olzzen » Thu Sep 16, 2021 5:10 am

Because the application has to be restarted after the widevine module is downloaded on linux, we want the user to inform about the necessary restart. Is there any callback, which can be used to observe the download progress or the component updater as a whole?
olzzen
Techie
 
Posts: 46
Joined: Fri Oct 23, 2015 1:01 am

Re: How to turn on Widevine?

Postby magreenblatt » Thu Sep 16, 2021 5:16 am

Not currently, but it could be good to add one. For now, you can watch the file system for the files being created using inotify or similar.
magreenblatt
Site Admin
 
Posts: 12382
Joined: Fri May 29, 2009 6:57 pm

PreviousNext

Return to Support Forum

Who is online

Users browsing this forum: No registered users and 39 guests