Implementing Screen Sharing using getUserMedia

Made a cool mod to CEF that you'd like to share with others? Discuss CEF modifications here, and view modifications that others have made.

Implementing Screen Sharing using getUserMedia

Postby arkenthera » Sun Nov 15, 2015 5:33 am

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/
arkenthera
Newbie
 
Posts: 5
Joined: Sun Nov 15, 2015 5:19 am

Re: Implementing Screen Sharing using getUserMedia

Postby magreenblatt » Sun Nov 15, 2015 12:09 pm

Thanks for sharing this :)
magreenblatt
Site Admin
 
Posts: 9838
Joined: Fri May 29, 2009 6:57 pm

Re: Implementing Screen Sharing using getUserMedia

Postby Horsetopus » Tue Jun 28, 2016 7:14 am

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?
Horsetopus
Newbie
 
Posts: 9
Joined: Fri Jul 19, 2013 9:47 am

Re: Implementing Screen Sharing using getUserMedia

Postby brunoclementino » Thu Jul 21, 2016 3:02 pm

Also I follow the tutorial more no success
brunoclementino
Newbie
 
Posts: 1
Joined: Thu Jul 21, 2016 2:59 pm

Re: Implementing Screen Sharing using getUserMedia

Postby arkenthera » Mon Jul 25, 2016 1:39 pm

Hey, what's the error you get while building the libcef yourself ?
arkenthera
Newbie
 
Posts: 5
Joined: Sun Nov 15, 2015 5:19 am


Return to Modifications Forum

Who is online

Users browsing this forum: No registered users and 1 guest