From d402fb5b7a7c0621b0d679958eb6d3af67e00273 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 23 Mar 2018 16:01:48 +0100 Subject: Update stun servers --- client/src/assets/player/peertube-videojs-plugin.ts | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) (limited to 'client/src/assets') diff --git a/client/src/assets/player/peertube-videojs-plugin.ts b/client/src/assets/player/peertube-videojs-plugin.ts index f4064c4b2..29b38ee71 100644 --- a/client/src/assets/player/peertube-videojs-plugin.ts +++ b/client/src/assets/player/peertube-videojs-plugin.ts @@ -44,7 +44,24 @@ function bytes (value) { // videojs typings don't have some method we need const videojsUntyped = videojs as any -const webtorrent = new WebTorrent({ dht: false }) +const webtorrent = new WebTorrent({ + tracker: { + rtcConfig: { + iceServers: [ + { + urls: 'stun:stun.stunprotocol.org' + }, + { + urls: 'stun:stun.framasoft.org' + }, + { + urls: 'stun:stun.l.google.com:19302' + } + ] + } + }, + dht: false +}) const MenuItem: VideoJSComponentInterface = videojsUntyped.getComponent('MenuItem') class ResolutionMenuItem extends MenuItem { -- cgit v1.2.3