v0.17.3 - keep rtcConfig at full
This commit is contained in:
parent
374917a668
commit
49d9549d80
1 changed files with 11 additions and 1 deletions
12
app.js
12
app.js
|
@ -1,12 +1,21 @@
|
|||
/* global WebTorrent, angular, moment, prompt */
|
||||
|
||||
const VERSION = '0.17.2'
|
||||
const VERSION = '0.17.3'
|
||||
|
||||
const tracker = ['wss://tracker.btorrent.xyz', 'wss://tracker.openwebtorrent.com', 'wss://tracker.fastcast.nz']
|
||||
const opts = {
|
||||
announce: tracker
|
||||
}
|
||||
|
||||
const rtcConfig = {
|
||||
'iceServers': [
|
||||
{
|
||||
'url': 'stun:stun.l.google.com:19305',
|
||||
'urls': 'stun:stun.l.google.com:19305'
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
const debug = window.localStorage.getItem('debug') != null
|
||||
|
||||
const dbg = function (string, item, color) {
|
||||
|
@ -25,6 +34,7 @@ const er = function (err, item) { dbg(err, item, '#FF0000') }
|
|||
dbg(`Starting... v${VERSION}`)
|
||||
|
||||
const client = new WebTorrent({
|
||||
rtcConfig: rtcConfig,
|
||||
tracker: opts
|
||||
})
|
||||
|
||||
|
|
Loading…
Reference in a new issue