什么时候能够通过WebRTC使用P2P交换任何类型的数据?
我在考虑制作一个P2P比特流软件,而不是用于音频/视频流。
谢谢。
什么时候能够通过WebRTC使用P2P交换任何类型的数据?
我在考虑制作一个P2P比特流软件,而不是用于音频/视频流。
谢谢。
这将在使用DataChannel的Chrome中可用: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称为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