【发布时间】:2020-11-02 21:06:24
【问题描述】:
在 .NET Framework 4.6.2 Windows 应用程序中,我尝试在 WebView 控件中以 JavaScript 运行一些 WebRTC 功能。该控件来自 Microsoft.Toolkit.Forms.UI.Controls.Webview (v6.1.1)。
当我尝试使用 RTCPeerConnection.AddTransceiver() 或 RTCPeerConnection.GetTransceivers() 时,我收到以下错误:
Object doesn't support property or method 'addTransceiver'
直接在 Edge 中运行时,代码按预期执行。
为什么会有差异,我如何才能看到在 WebView 控件上下文中使用的确切 API?
【问题讨论】:
标签: javascript .net webrtc webbrowser-control microsoft-edge