Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Run Cefsharp as Chrome

Is it possible to use CefSharp as 'Chrome'? I know, it is a kind of Chrome, but webpages doesn't see CefSharp as Chrome. The story: I want to embed WhatsApp Web with CefSharp, but Whatsapp says: Only Chrome supported. Are there any possibilities to 'fake' Chrome?

like image 905
NVO Avatar asked Feb 19 '26 07:02

NVO


1 Answers

WhatsApp Web checks for browser capabilities. It fails when checking for navigator.getUserMedia. To enable WebRTC audio/video you need to set the --enable-media-stream flag. Set it programmatically through the CefSettings.CefCommandLineArgs option. For an example see CefSharp.Example/CefExample.cs.

like image 64
Czarek Tomczak Avatar answered Feb 21 '26 21:02

Czarek Tomczak



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!