diff options
Diffstat (limited to 'client/src/assets/player/peertube-player-manager.ts')
-rw-r--r-- | client/src/assets/player/peertube-player-manager.ts | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/client/src/assets/player/peertube-player-manager.ts b/client/src/assets/player/peertube-player-manager.ts index b24b6966e..b9077dcae 100644 --- a/client/src/assets/player/peertube-player-manager.ts +++ b/client/src/assets/player/peertube-player-manager.ts | |||
@@ -23,6 +23,7 @@ import './shared/mobile/peertube-mobile-plugin' | |||
23 | import './shared/mobile/peertube-mobile-buttons' | 23 | import './shared/mobile/peertube-mobile-buttons' |
24 | import './shared/hotkeys/peertube-hotkeys-plugin' | 24 | import './shared/hotkeys/peertube-hotkeys-plugin' |
25 | import videojs from 'video.js' | 25 | import videojs from 'video.js' |
26 | import { logger } from '@root-helpers/logger' | ||
26 | import { PluginsManager } from '@root-helpers/plugins-manager' | 27 | import { PluginsManager } from '@root-helpers/plugins-manager' |
27 | import { isMobile } from '@root-helpers/web-browser' | 28 | import { isMobile } from '@root-helpers/web-browser' |
28 | import { saveAverageBandwidth } from './peertube-player-local-storage' | 29 | import { saveAverageBandwidth } from './peertube-player-local-storage' |
@@ -145,7 +146,7 @@ export class PeertubePlayerManager { | |||
145 | return | 146 | return |
146 | } | 147 | } |
147 | 148 | ||
148 | console.log('Fast forwarding HLS to recover from an error.') | 149 | logger.info('Fast forwarding HLS to recover from an error.') |
149 | 150 | ||
150 | this.videojsDecodeErrors++ | 151 | this.videojsDecodeErrors++ |
151 | 152 | ||
@@ -170,7 +171,7 @@ export class PeertubePlayerManager { | |||
170 | return | 171 | return |
171 | } | 172 | } |
172 | 173 | ||
173 | console.log('Fallback to webtorrent.') | 174 | logger.info('Fallback to webtorrent.') |
174 | 175 | ||
175 | this.rebuildAndUpdateVideoElement(currentPlayer, options.common) | 176 | this.rebuildAndUpdateVideoElement(currentPlayer, options.common) |
176 | 177 | ||