diff options
author | Chocobozzz <me@florianbigard.com> | 2018-03-23 16:01:48 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-03-23 16:02:07 +0100 |
commit | d402fb5b7a7c0621b0d679958eb6d3af67e00273 (patch) | |
tree | d34ad14dab98d837d7c08ac085b1f0d8e514f0ec /client/src | |
parent | 03ae9d887ae46bef62cfd2b46c1d6b0836bea246 (diff) | |
download | PeerTube-d402fb5b7a7c0621b0d679958eb6d3af67e00273.tar.gz PeerTube-d402fb5b7a7c0621b0d679958eb6d3af67e00273.tar.zst PeerTube-d402fb5b7a7c0621b0d679958eb6d3af67e00273.zip |
Update stun servers
Diffstat (limited to 'client/src')
-rw-r--r-- | client/src/assets/player/peertube-videojs-plugin.ts | 19 |
1 files changed, 18 insertions, 1 deletions
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) { | |||
44 | 44 | ||
45 | // videojs typings don't have some method we need | 45 | // videojs typings don't have some method we need |
46 | const videojsUntyped = videojs as any | 46 | const videojsUntyped = videojs as any |
47 | const webtorrent = new WebTorrent({ dht: false }) | 47 | const webtorrent = new WebTorrent({ |
48 | tracker: { | ||
49 | rtcConfig: { | ||
50 | iceServers: [ | ||
51 | { | ||
52 | urls: 'stun:stun.stunprotocol.org' | ||
53 | }, | ||
54 | { | ||
55 | urls: 'stun:stun.framasoft.org' | ||
56 | }, | ||
57 | { | ||
58 | urls: 'stun:stun.l.google.com:19302' | ||
59 | } | ||
60 | ] | ||
61 | } | ||
62 | }, | ||
63 | dht: false | ||
64 | }) | ||
48 | 65 | ||
49 | const MenuItem: VideoJSComponentInterface = videojsUntyped.getComponent('MenuItem') | 66 | const MenuItem: VideoJSComponentInterface = videojsUntyped.getComponent('MenuItem') |
50 | class ResolutionMenuItem extends MenuItem { | 67 | class ResolutionMenuItem extends MenuItem { |