Support for screen sharing 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.

Re: Support for screen sharing in CEF

Postby linuxcef9 » Fri Aug 23, 2019 12:22 pm

Yeah I see. I have (unfortunately) not contributed to CEF. According to you, how much effort would it be to include that flag in CEF ? How can I figure out what plumbing might be needed to get it working?
linuxcef9
Expert
 
Posts: 143
Joined: Tue Nov 06, 2018 3:08 pm

Re: Support for screen sharing in CEF

Postby xuyu » Fri Sep 06, 2019 6:03 am

hey guys, I made a code patch for CEF to support getDisplayMedia(), which support full screen and window sharing (popup a window picker like Chrome):
https://github.com/epubcn/cef_enhanceme ... splayMedia

I only make Windows 3578,3729,3770,3809 and macOS 3578,3729, use --enable-media-stream to enable getDisplayMedia() please.
btw, the codes is only for personal use, which may be have some bugs, feel free to tell me

I am expect the offical version of supporting screen/window sharing to release soon
xuyu
Newbie
 
Posts: 6
Joined: Wed Jul 04, 2018 8:37 pm

Re: Support for screen sharing in CEF

Postby mgkcorty » Mon Sep 28, 2020 2:21 am

Hello, guys! We still have issues with screen sharing, and stuck with further development. Any progress on it?

I find this PR with WIP status https://bitbucket.org/chromiumembedded/ ... quests/323
Do you plan to finish PR in the next 1-2 months?
mgkcorty
Newbie
 
Posts: 1
Joined: Mon Sep 28, 2020 2:13 am

Re: Support for screen sharing in CEF

Postby linuxcef9 » Fri Oct 02, 2020 2:12 pm

Marshall is the one who decides. That PR if merged, would be useful for me too!
linuxcef9
Expert
 
Posts: 143
Joined: Tue Nov 06, 2018 3:08 pm

Re: Support for screen sharing in CEF

Postby linuxcef9 » Mon Oct 24, 2022 5:34 pm

Hi marshall,

I see that https://bitbucket.org/chromiumembedded/ ... quests/499 has been submitted which added runtime support for media permissions.
However, are there any plans to display window picker when screen sharing permission is requested on multi-monitor setup?
linuxcef9
Expert
 
Posts: 143
Joined: Tue Nov 06, 2018 3:08 pm

Re: Support for screen sharing in CEF

Postby magreenblatt » Mon Oct 24, 2022 7:32 pm

These dialogs should already be supported with the Chrome runtime. There are no plans currently to add support with the Alloy runtime.
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: Support for screen sharing in CEF

Postby linuxcef9 » Tue Oct 25, 2022 5:25 pm

These dialogs should already be supported with the Chrome runtime. There are no plans currently to add support with the Alloy runtime.


But how do I trigger those dialogs to show up? I am using https://www.webrtc-experiment.com/Plugi ... 2278400124 to test.
If I launch cefclient.exe --enable-chrome-runtime and access above URL, I get NotAllowedError since cefclient doesn't give screenshare permission by default.
If I launch cefclient.exe --enable-media-stream --enable-chrome-runtime and access above URL, I can see both my monitors are shared and no dialog pops up.

I am using sample application of cefclient based off 5249 branch from openspotify website.
linuxcef9
Expert
 
Posts: 143
Joined: Tue Nov 06, 2018 3:08 pm

Re: Support for screen sharing in CEF

Postby magreenblatt » Tue Oct 25, 2022 6:17 pm

Try with “cefsimple.exe --enable-chrome-runtime” to get a Chrome themed window. Do the dialogs show there?
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: Support for screen sharing in CEF

Postby linuxcef9 » Tue Oct 25, 2022 6:50 pm

Try with “cefsimple.exe --enable-chrome-runtime” to get a Chrome themed window. Do the dialogs show there?


That worked, thanks! Not sure why did it not work with cefclient.
linuxcef9
Expert
 
Posts: 143
Joined: Tue Nov 06, 2018 3:08 pm

Re: Support for screen sharing in CEF

Postby magreenblatt » Tue Oct 25, 2022 7:30 pm

It probably depends on some part of the Chrome theme UI that is hidden with cefclient.
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

PreviousNext

Return to Support Forum

Who is online

Users browsing this forum: No registered users and 57 guests