WebRTC P2P - 更新

问题描述 投票:9回答:4

什么时候可以通过P2P与WebRTC交换任何类型的数据?

我正在考虑制作一个P2P bittorrent软件,而不是流式传输音频/视频。

谢谢

html5 websocket p2p bittorrent webrtc
4个回答
8
投票

有一些JS库:PeerJSBoneValue用于使用WebRTC进行P2P数据交换。

如果你想制作类似BitTorrent的JS应用程序来发送文件,请注意已经有一些 - BtAppJSShareFestShareItRTC-P2PP2P-Share


5
投票

这将在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)中建立数据连接,下一步是尝试自己编译。


2
投票

基于WebRTC的P2P bittorrent软件已经存在。它被称为WebTorrentsource)。


0
投票

不传输音频/视频但是任意数据的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

© www.soinside.com 2019 - 2024. All rights reserved.