diff options
Diffstat (limited to 'client')
-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 { |