webtorrent - WebSocket 连接到“wss://tracker.btorrent.xyz/”失败:WebSocket 握手期间出错:意外响应代码:522 {webtorrent}
问题描述
你好,智人,我似乎已经走到了死胡同,需要你的帮助。我正在使用 webtorrent-hybrid 来显示 torrent,但是当我使用 client.add 下载 torrent 时,出现此错误,
ICE failed, add a TURN server and see about:webrtc for more details 10
Firefox can’t establish a connection to the server at wss://tracker.btorrent.xyz/.
如果您好奇,这就是代码,
client.add(torrentId, function (torrent) {
var file = torrent.files.find(function (file) {
return file.name.endsWith('.mp4')
})
var info = torrent.ready
console.log(info)
file.appendTo('body')
console.log(file)
// Display the file by adding it to the DOM. Supports video, audio, image, etc. files
})
如果您能帮助我解决我的问题,我将不胜感激。
解决方案
推荐阅读
- javascript - SharePoint REST 查询 SP.UserProfiles.PeopleManager.getPropertiesFor 未获取用户
- java - 如何增加消息大小正在由 java 应用程序中的 syslog4j 发送到 rsyslog
- javascript - d3 v4 图表交替 x 轴
- html - 如何禁用背景过滤器:从 div 内的内容模糊?
- html - 错误与其他元素重叠并且不占用自己的空间
- rest - Magento 2 Rest API得到“签名无效。验证并在某些安装上重试,但在邮递员中有效
- php - 从未派遣过 ShouldBeUnique 的工作
- spring-boot - Swagger ui 使用 ip 和端口而不是域名
- javascript - 为什么 iframe 请求被视为跨站点?
- sql - 将字符转换为日期并选择最大日期(DB2 SQL 语句)