Page 1 of 1

Implementing Screen Sharing using getUserMedia

PostPosted: Sun Nov 15, 2015 5:33 am
by arkenthera
Recently I've been requested to implement screen sharing in a CEF client whose purpose is peer to peer communication(Webrtc). I knew screen sharing was possible directly using getUserMedia in the past but they removed it and moved to extension API chrome.desktopCapture. After digging around Google, I've stumbled across a person who did implement screen sharing.

Here is the related issue https://bitbucket.org/chromiumembedded/cef/issues/1065/add-support-for-webrtc-based-screen

Related patch https://github.com/buglloc/cef-builds/blob/master/patches/allow_screen_sharing.patch

Since the guy who created the patch originally didnt post this here I wanted to get this known in case someone googles screen sharing and can't find anything.

I also made a blog post about step-by-step tutorial of how to apply the patch and recompile libcef,implement a screen picker for Windows(like in chrome extension) heavily using Win32 API. Here is the blog post link http://arkenthera.github.io/Enabling-CEF-to-Screen-Share-using-getUserMedia-API/

Re: Implementing Screen Sharing using getUserMedia

PostPosted: Sun Nov 15, 2015 12:09 pm
by magreenblatt
Thanks for sharing this :)

Re: Implementing Screen Sharing using getUserMedia

PostPosted: Tue Jun 28, 2016 7:14 am
by Horsetopus
Damn...
I tried to patch CEF, but nothing seems to work.
( here is the updated link to the tutorial:
http://arkenthera.github.io/blog/Enabli ... Media-API/ )
The patching didn't work... I modified the file myself.
But anyway the building doesn't work...

Is there any reason why this code is not patched by default to CEF?

Re: Implementing Screen Sharing using getUserMedia

PostPosted: Thu Jul 21, 2016 3:02 pm
by brunoclementino
Also I follow the tutorial more no success

Re: Implementing Screen Sharing using getUserMedia

PostPosted: Mon Jul 25, 2016 1:39 pm
by arkenthera
Hey, what's the error you get while building the libcef yourself ?