什么时候可以通过P2P与WebRTC交换任何类型的数据?
我正在考虑制作一个P2P bittorrent软件,而不是流式传输音频/视频。
谢谢
这将在Chrome中使用DataChannel:http://webrtc-demos.appspot.com/html/dc1.html
您可以在Google I / O的这次演讲中看到概述:http://www.youtube.com/watch?v=E8C8ouiXHHk&t=24m30s
我无法在Chrome 21或22(Canary)中建立数据连接,下一步是尝试自己编译。
基于WebRTC的P2P bittorrent软件已经存在。它被称为WebTorrent(source)。
不传输音频/视频但是任意数据的WebRTC称为RTCDataChannel:https://developer.mozilla.org/en-US/docs/Web/API/RTCDataChannel
但你迟到了 - WebTorrent已经存在。
WebTorrent客户:https://github.com/webtorrent/webtorrent
WebTorrent跟踪器实现:https://github.com/Novage/wt-tracker
混合BitTorrent \ WebTorrent跟踪器:https://github.com/webtorrent/bittorrent-tracker