How to debug media module of chromium in cef ?

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.

How to debug media module of chromium in cef ?

Postby Yijia » Tue Sep 09, 2014 11:17 pm

I wound like debug media module under chromium\src\media , I download cef by using automate-git.py and my command line is like
set GYP_GENERATORS=ninja,msvs-ninja
set GYP_MSVS_VERSION=2013
python F:\Cef\automate-git.py --download-dir=F:\Cef\ --branch=2062

After several hours, I can see there are about 30GB files on my disk and I can find
vs2010 solution under chromium\src\cef\binary_distribution.
After I open this solution, there are three projects. cefclient, cefsimple and cefwrapper.

My requirement is :
1. I wound like to extend the functionality of cefclient so that cefclient can cache streaming video buffer into local disk. This requires some changes under media module of chromium.

My questions are:
1. Based on what I have, what else should I do to debug media module of chromium together with cefclient solution?
2. How to change the code of media module and our private build of cefclient can take benefit from it?

I use vs2013 for the debug.

Regards-
Yining
Yijia
Techie
 
Posts: 12
Joined: Thu Jul 26, 2012 1:28 am

Re: How to debug media module of chromium in cef ?

Postby magreenblatt » Wed Sep 10, 2014 8:58 am

Open F:\Cef\chromium\src\cef\cef.sln and use that for debugging.
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: How to debug media module of chromium in cef ?

Postby Yijia » Wed Sep 10, 2014 6:35 pm

Hi magreenblatt

I can only find a vs solution under chromium\src\cef\binary_distrib\cef_binary_3.1916.1804_windows32 it called cefclient2010
I can't find any solution under chromium\src\cef\ which called cef.sln.

Did I misse some steps to generate that solution?

[no cef.png]


Thanks for your support
Yining
Attachments
no cef.png
no cef.png (36.02 KiB) Viewed 7308 times
Yijia
Techie
 
Posts: 12
Joined: Thu Jul 26, 2012 1:28 am

Re: How to debug media module of chromium in cef ?

Postby magreenblatt » Wed Sep 10, 2014 7:03 pm

You specified 2062 branch to automate-git.py but the binary distribution you reference is 1916 branch. It looks like something failed. Check for error messages after running automate-git.py.
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: How to debug media module of chromium in cef ?

Postby Yijia » Wed Sep 10, 2014 7:22 pm

Hi That is not the reason.

I build two release, both 2062 and 1916.
Its my mistake that I give you 2062 command line and 1916 binary path.
That should be match.

Any help about cef.sln is appreciated.

Yining
Yijia
Techie
 
Posts: 12
Joined: Thu Jul 26, 2012 1:28 am

Re: How to debug media module of chromium in cef ?

Postby Yijia » Tue Sep 16, 2014 8:07 am

Hi Magreenblatt,

Any comment on this?
I had been working on this for several days and get no luck to build/Find cef.sln.
I remembered that releases 1280 indeed provide cef.sln , but I can't build it anymore since may configuration or script had been changed a lot.
I really need this solution to help me debug libCef so, any comments will be great help.

Regards-
Yining
Yijia
Techie
 
Posts: 12
Joined: Thu Jul 26, 2012 1:28 am

Re: How to debug media module of chromium in cef ?

Postby magreenblatt » Tue Sep 16, 2014 9:48 am

The automate-git.py script will ignore that GYP_GENERATORS value that you specify. Instead, run the cef_create_projects.bat script directly after setting the environment variables. For example:
set GYP_GENERATORS=ninja,msvs-ninja
set GYP_MSVS_VERSION=2013
cd F:\Cef\chromium\src\cef
cef_create_projects.bat
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: How to debug media module of chromium in cef ?

Postby Yijia » Tue Sep 16, 2014 11:59 am

Hi Magreenblatt,

A quick update on this.
It works for me and finally I see cef.sln under F:\Cef\chromium\src\cef.

One more questions.
I tried to use VS to build cef and it failed, from the wiki, I believe this is as design, right?
I can use ninja -C out/Debug cefclient to build cef successfully and cef.sln is for debug purpose only, right?

Regards
Yining
Yijia
Techie
 
Posts: 12
Joined: Thu Jul 26, 2012 1:28 am

Re: How to debug media module of chromium in cef ?

Postby magreenblatt » Tue Sep 16, 2014 12:06 pm

Yijia wrote:I can use ninja -C out/Debug cefclient to build cef successfully and cef.sln is for debug purpose only, right?

Mostly correct. You can compile/build individual files/targets in VS but running ninja from the command-line is best.
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: How to debug media module of chromium in cef ?

Postby Yijia » Tue Sep 16, 2014 12:12 pm

What if I use older build, like 1650? from the wiki, it says Ninja is optional, does that means I can use cef.sln to build it?
Yijia
Techie
 
Posts: 12
Joined: Thu Jul 26, 2012 1:28 am

Next

Return to Support Forum

Who is online

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