chromelyapps / Chromely

Build Cross Platform HTML Desktop Apps on .NET using native GUI, HTML5, JavaScript, CSS, Owin, AspNetCore (MVC, RazorPages, Blazor)
MIT License
2.98k stars 279 forks source link

Howto enable access to camera and microphone #298

Closed peerem closed 3 years ago

peerem commented 3 years ago

Hello.

How can we pass "enable-media-stream" to Cef? It is required for the camera and microphone in WebRtc.

mattkol commented 3 years ago

Please see how to set CommandLineOptions.

 var config = DefaultConfiguration.CreateForRuntimePlatform();
 config.CommandLineOptions.Add("enable-media-stream");
peerem commented 3 years ago

Works fine, thank you.