问题描述
我需要与本机桌面 (win) 应用程序和 webbrowser 建立对等连接,以传输原始数据.从理论上讲,WebRTC 似乎是唯一的方法.
I need to make a peer connection with a native desktop (win) application and a webbrowser , just to transfer raw data. And in theory WebRTC seems to be the only way to do that.
推荐答案
如果你想使用 WebRTC 在浏览器和桌面之间交换数据,你可以使用这个库将桌面部分编码成 C# 语言:http://www.meshcommander.com/webrtc(支持和文档很差,仅实现了数据通道,但免费且功能强大).
If you want to use WebRTC to exchange data between a browser and a desktop, you can code the desktop part into C# language using this library : http://www.meshcommander.com/webrtc (poor support and documentation, only data channel implemented, but free and functional).
还有这个支持视频的 .Net 库:https://github.com/radioman/WebRtc.NET
Edit : There is also this .Net library with support of video : https://github.com/radioman/WebRtc.NET
此外,您可以使用 Node.js 编写桌面部分.网络上有很多 WebRTC 库,您将获得更多文档和支持.
Also, you can write the desktop part using Node.js. There are a lot of WebRTC libraries on the web and you w'll have more documentation and support.
这篇关于如何与本机桌面 (win) 应用程序建立对等连接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!