Enabling h264 support in CEF disables all user defined style

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.

Enabling h264 support in CEF disables all user defined style

Postby jingxian » Tue Apr 10, 2018 10:40 pm

Currently we are working on a project to enable webrtc call on IPhone, which only supports h264 codec. For the other end of the call, we dock a CEF chromium browser using CEFSharp in a WPF application. CEF disables h264 by default. We build CEF using build 3239 source with the following build options to enable h264:

is_official_build=true 
proprietary_codecs=true 
ffmpeg_branding=Chrome


We also make sure we use v63 CEFSharp in our application.

Once we have the build, we replace the following binaries using the ones from the h264 enabled build:

d3dcompiler_47.dll
chrome_elf.dll
snapshot_blob.bin
v8_context_snapshot.bin
libGLESv2.dll
libEGL.dll
libcef.dll
natives_blob.bin
cef.pak
cef_100_percent.pak
cef_200_percent.pak
widevinecdmadapter.dll - (this one is in the widevinecdm subfolder)
cef_extensions.pak
icudtl.dat
devtools_resources.pak

We are able to get video session going using h264 codec. However we notice that the embedded chromium browser starts disabling all styles defined in <style></style>tag within the html page.

If someone knows the cause of the issue and what we did wrong in the process, could you please let me know. It is much appreciated. Thanks in advance! :D
jingxian
Newbie
 
Posts: 8
Joined: Tue Apr 10, 2018 10:21 pm

Re: Enabling h264 support in CEF disables all user defined s

Postby Czarek » Wed Apr 11, 2018 12:08 am

Your CEF version must match exactly (branch and *revision*) with the CEF version that CefSharp v63 was built with.
Maintainer of the CEF Python, PHP Desktop and CEF C API projects. My LinkedIn.
User avatar
Czarek
Virtuoso
 
Posts: 1927
Joined: Sun Nov 06, 2011 2:12 am

Re: Enabling h264 support in CEF disables all user defined s

Postby jingxian » Wed Apr 11, 2018 2:30 pm

Thank you for the quick response. Here is the version info for CEF build and CEFSharp version we are using and it seems they are the exact match:

We use CefSharp v63.0.3, which according to release notes uses CEF 3.3239.1723.g071d1c1 / Chromium 63.0.3239.132

We rebuilt CEF Branch 3239 rev. 071d1c1, which includes the Chromium source 3239 rev 132

Any Idea?

many thanks!
jingxian
Newbie
 
Posts: 8
Joined: Tue Apr 10, 2018 10:21 pm

Re: Enabling h264 support in CEF disables all user defined s

Postby Czarek » Wed Apr 11, 2018 11:39 pm

You should ask on the CefSharp support channel.
Maintainer of the CEF Python, PHP Desktop and CEF C API projects. My LinkedIn.
User avatar
Czarek
Virtuoso
 
Posts: 1927
Joined: Sun Nov 06, 2011 2:12 am

Re: Enabling h264 support in CEF disables all user defined s

Postby amaitland » Thu Apr 12, 2018 2:28 am

You should build and test with cefclient to confirm that your build is working.
Maintainer of the CefSharp project.
amaitland
Virtuoso
 
Posts: 1290
Joined: Wed Jan 14, 2015 2:35 am

Re: Enabling h264 support in CEF disables all user defined s

Postby jingxian » Thu Apr 12, 2018 2:02 pm

Thank you! We will try.
jingxian
Newbie
 
Posts: 8
Joined: Tue Apr 10, 2018 10:21 pm

Re: Enabling h264 support in CEF disables all user defined s

Postby jingxian » Fri Apr 13, 2018 12:52 am

We have rebuilt the same version of cef with h264 from scratch. We used the cefclient tool as suggested to run some testing afterwards and replicated the issue. So it looks to us the issue resides in this particular build of cef. Could you please advise which version of cef would produce a build with h264 enabled and would not disable user defined css and work with matching version of cefsharp?

Many thanks!
jingxian
Newbie
 
Posts: 8
Joined: Tue Apr 10, 2018 10:21 pm

Re: Enabling h264 support in CEF disables all user defined s

Postby Czarek » Fri Apr 13, 2018 1:22 am

What steps did you follow when building? You are confusing concepts, because "user defined styles" (google it) is something different than you describe, such styles are not supported by CEF anymore.
Maintainer of the CEF Python, PHP Desktop and CEF C API projects. My LinkedIn.
User avatar
Czarek
Virtuoso
 
Posts: 1927
Joined: Sun Nov 06, 2011 2:12 am

Re: Enabling h264 support in CEF disables all user defined s

Postby jingxian » Fri Apr 13, 2018 1:44 am

What I mean is the style embedded in html page and the ones defined in css file(loaded by html page). Could you please confirm if this is supported?

I will check the build process.

Thank you
jingxian
Newbie
 
Posts: 8
Joined: Tue Apr 10, 2018 10:21 pm

Re: Enabling h264 support in CEF disables all user defined s

Postby jingxian » Sun Apr 15, 2018 2:03 pm

We followed the steps from here for Windows:
https://bitbucket.org/chromiumembedded/ ... QuickStart

With the modification listed at the beginning of the post, as well as matching to the revision of depot tools df27bf6f - to sync with the branch time (Also tried Master as well)

The following update.bat and create.bat files were created.

set CEF_USE_GN=1
set GN_DEFINES=use_jumbo_build=true is_official_build=true proprietary_codecs=true ffmpeg_branding=Chrome
set GN_ARGUMENTS=--ide=vs2017 --sln=cef --filters=//cef/*
set DEPOT_TOOLS_UPDATE=0
python ..\automate\automate-git.py --branch=3239 --download-dir=D:\code\chromium_git --depot-tools-dir=D:\code\depot_tools --no-distrib --no-build


set CEF_USE_GN=1
set GN_DEFINES=use_jumbo_build=true is_official_build=true proprietary_codecs=true ffmpeg_branding=Chrome
set GN_ARGUMENTS=--ide=vs2017 --sln=cef --filters=//cef/*
set DEPOT_TOOLS_UPDATE=0
call cef_create_projects.bat


The resulting CefClient looked like this:(See attached file)

Also, we tried this with Release branch 3325 and it does not have these style issues, however latest CefSharp only goes up to 3239, hence why we are trying with this branch of CEF.
I can only assume that the steps outlined in the wiki do not work for this branch, even though there were no apparent errors during compiling, just the obvious styling issues in the client.

Just hoping if someone can shed some light on this issue to help us resolve this problem, other than lengthy trial and error building of branches pre-3239 until we find one that works, which become more and more out of date.

Many thanks!
Attachments
h264build.jpg
h264build.jpg (11.77 KiB) Viewed 11293 times
jingxian
Newbie
 
Posts: 8
Joined: Tue Apr 10, 2018 10:21 pm

Next

Return to Support Forum

Who is online

Users browsing this forum: No registered users and 42 guests