WebTorrent Element
- 授权协议: 未知
- 开发语言: JavaScript
- 操作系统: 跨平台
- 软件首页: https://github.com/mikeal/webtorrent-element
- 软件文档: https://github.com/mikeal/webtorrent-element
- 官方下载: https://github.com/mikeal/webtorrent-element
软件介绍
WebTorrent Element 是一个 HTML 元素,可以用来显示来自 WebTorrent 上的内容。
使用方法:
<body> <script src="https://cdn.jsdelivr.net/npm/webtorrent-element@latest/dist/webtorrent-element.min.js"></script> <web-torrent src="MAGNETURL" /> </body>
在 JavaScript 中使用:
const WebTorrentComponent = require('webtorrent-element') let elem = new WebTorrentComponent() elem.src = MAGNETURL elem.file = 'Sintel.mp4' document.body.appendChild(elem)