c# - 将 Cefsharp 作为 Chrome 运行

标签 c# google-chrome whatsapp cefsharp

是否可以将 CefSharp 用作“Chrome”?我知道,它是一种 Chrome,但网页并未将 CefSharp 视为 Chrome。 故事: 我想将 WhatsApp Web 与 CefSharp 嵌入,但 Whatsapp 显示:仅支持 Chrome。是否有可能“伪造”Chrome?

最佳答案

WhatsApp Web 检查浏览器功能。检查 navigator.getUserMedia 时失败。要启用 WebRTC 音频/视频,您需要设置 --enable-media-stream 标志。通过 CefSettings.CefCommandLineArgs 选项以编程方式设置它。有关示例,请参见 CefSharp.Example/CefExample.cs .

关于c# - 将 Cefsharp 作为 Chrome 运行,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28461156/

相关文章:

ajax - Chrome Ajax 响应中的 UTF-8 编码出错

html - 博主的 WhatsApp 分享按钮

php - Whatsapp PHP api 接收编码消息

python - Yosup Echoclient 错误 : "InvalidMessage or KeyId for 91XXXXXXXXXX, going to send a retry"

c# - 将列表与具有共同父类(super class)的自定义对象进行比较

c# - 使用最小起订量模拟 Entity Framework 6 ObjectResult

c# - 错误 MSB4006 : There is a circular dependency in the target dependency graph involving target

javascript - 检查已打开页面上的 css 或 js 文件是从缓存还是从服务器加载的?

google-chrome - 使用 Chrome 或 Safari 强制 HTTP/2

c# - C#中的简单for循环