aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src
diff options
context:
space:
mode:
Diffstat (limited to 'client/src')
-rw-r--r--client/src/assets/player/peertube-videojs-plugin.ts19
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
46const videojsUntyped = videojs as any 46const videojsUntyped = videojs as any
47const webtorrent = new WebTorrent({ dht: false }) 47const 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
49const MenuItem: VideoJSComponentInterface = videojsUntyped.getComponent('MenuItem') 66const MenuItem: VideoJSComponentInterface = videojsUntyped.getComponent('MenuItem')
50class ResolutionMenuItem extends MenuItem { 67class ResolutionMenuItem extends MenuItem {