cefsharp.winform about screen

Having problems with building or using the CefSharp .NET binding? Ask your CEF-related questions here. Please ask general usage questions on StackOverflow.

Moderator: amaitland

cefsharp.winform about screen

Postby luoxp » Fri Oct 29, 2021 1:06 am

hi,I use cefsharp in my project to call ChromiumWebBrowser to load web pages. The webpage has a screen sharing function that uses webRTC. There is no pop-up window to select the screen or window to be shared. Instead, the entire screen is shared by default.
chrome kernel is :94
this is my cefsettings code:
settings.CefCommandLineArgs["autoplay-policy"] = "no-user-gesture-required";
settings.CefCommandLineArgs.Add("enable-media-stream");
settings.CefCommandLineArgs.Add("disable-gpu");
settings.CefCommandLineArgs.Add("no-proxy-server");
settings.CefCommandLineArgs.Add("enable-experimental-web-platform-features");
settings.CefCommandLineArgs.Add("enable-p2papi");
settings.CefCommandLineArgs.Add("allow-running-insecure-content");
settings.CefCommandLineArgs.Add("enable-usermedia-screen-capturing");
settings.CefCommandLineArgs.Add("enable-speech-input");
settings.CefCommandLineArgs.Add("allow-file-access-from-files");
settings.CefCommandLineArgs.Add("allow-http-screen-capture");
settings.CefCommandLineArgs.Add("auto-select-desktop-capture-source","display");
settings.CefCommandLineArgs.Add("use-fake-ui-for-media-stream");
settings.CefCommandLineArgs.Add("use-first-display-as-internal","0");
luoxp
Newbie
 
Posts: 1
Joined: Thu Oct 28, 2021 9:48 pm

Re: cefsharp.winform about screen

Postby amaitland » Fri Oct 29, 2021 2:15 pm

That is correct, CEF doesn't currently support sharing a specific window/screen.
Maintainer of the CefSharp project.
amaitland
Virtuoso
 
Posts: 1290
Joined: Wed Jan 14, 2015 2:35 am


Return to CefSharp Forum

Who is online

Users browsing this forum: No registered users and 14 guests