diff options
author | Chocobozzz <me@florianbigard.com> | 2018-06-25 08:27:40 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-06-25 08:27:40 +0200 |
commit | 332e7032c5b998e0ec44ab5dd8bfe723b229e7b1 (patch) | |
tree | e95c00d40a706f6d326aed901a71f475b6411e42 | |
parent | 5511da6289e80f91daf5dcb3b632068c02a24ccb (diff) | |
download | PeerTube-332e7032c5b998e0ec44ab5dd8bfe723b229e7b1.tar.gz PeerTube-332e7032c5b998e0ec44ab5dd8bfe723b229e7b1.tar.zst PeerTube-332e7032c5b998e0ec44ab5dd8bfe723b229e7b1.zip |
Log into the console torrent errors
-rw-r--r-- | client/src/assets/player/peertube-videojs-plugin.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/client/src/assets/player/peertube-videojs-plugin.ts b/client/src/assets/player/peertube-videojs-plugin.ts index 208105d3c..848dcb266 100644 --- a/client/src/assets/player/peertube-videojs-plugin.ts +++ b/client/src/assets/player/peertube-videojs-plugin.ts | |||
@@ -242,7 +242,7 @@ class PeerTubePlugin extends Plugin { | |||
242 | }, options.delay || 0) | 242 | }, options.delay || 0) |
243 | }) | 243 | }) |
244 | 244 | ||
245 | this.torrent.on('error', err => this.handleError(err)) | 245 | this.torrent.on('error', err => console.error(err)) |
246 | 246 | ||
247 | this.torrent.on('warning', (err: any) => { | 247 | this.torrent.on('warning', (err: any) => { |
248 | // We don't support HTTP tracker but we don't care -> we use the web socket tracker | 248 | // We don't support HTTP tracker but we don't care -> we use the web socket tracker |
@@ -250,7 +250,7 @@ class PeerTubePlugin extends Plugin { | |||
250 | 250 | ||
251 | // Users don't care about issues with WebRTC, but developers do so log it in the console | 251 | // Users don't care about issues with WebRTC, but developers do so log it in the console |
252 | if (err.message.indexOf('Ice connection failed') !== -1) { | 252 | if (err.message.indexOf('Ice connection failed') !== -1) { |
253 | console.error(err) | 253 | console.log(err) |
254 | return | 254 | return |
255 | } | 255 | } |
256 | 256 | ||
@@ -261,7 +261,7 @@ class PeerTubePlugin extends Plugin { | |||
261 | return this.addTorrent(this.torrent['xs'], previousVideoFile, options, done) | 261 | return this.addTorrent(this.torrent['xs'], previousVideoFile, options, done) |
262 | } | 262 | } |
263 | 263 | ||
264 | return this.handleError(err) | 264 | return console.warn(err) |
265 | }) | 265 | }) |
266 | } | 266 | } |
267 | 267 | ||
@@ -564,7 +564,7 @@ class PeerTubePlugin extends Plugin { | |||
564 | this.player.controlBar.on('mouseenter', () => disableInactivity()) | 564 | this.player.controlBar.on('mouseenter', () => disableInactivity()) |
565 | settingsDialog.on('mouseenter', () => disableInactivity()) | 565 | settingsDialog.on('mouseenter', () => disableInactivity()) |
566 | this.player.controlBar.on('mouseleave', () => enableInactivity()) | 566 | this.player.controlBar.on('mouseleave', () => enableInactivity()) |
567 | // settingsDialog.on('mouseleave', () => enableInactivity()) | 567 | settingsDialog.on('mouseleave', () => enableInactivity()) |
568 | } | 568 | } |
569 | 569 | ||
570 | private pickAverageVideoFile () { | 570 | private pickAverageVideoFile () { |