diff options
Diffstat (limited to 'client/src/assets/player/peertube-player-manager.ts')
-rw-r--r-- | client/src/assets/player/peertube-player-manager.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/client/src/assets/player/peertube-player-manager.ts b/client/src/assets/player/peertube-player-manager.ts index 5db7a2e55..9663d90a2 100644 --- a/client/src/assets/player/peertube-player-manager.ts +++ b/client/src/assets/player/peertube-player-manager.ts | |||
@@ -167,7 +167,7 @@ export class PeertubePlayerManager { | |||
167 | } | 167 | } |
168 | 168 | ||
169 | private static async tryToRecoverHLSError (err: any, currentPlayer: videojs.Player, options: PeertubePlayerManagerOptions) { | 169 | private static async tryToRecoverHLSError (err: any, currentPlayer: videojs.Player, options: PeertubePlayerManagerOptions) { |
170 | if (err.code === 3) { // Decode error | 170 | if (err.code === MediaError.MEDIA_ERR_DECODE) { |
171 | 171 | ||
172 | // Display a notification to user | 172 | // Display a notification to user |
173 | if (this.videojsDecodeErrors === 0) { | 173 | if (this.videojsDecodeErrors === 0) { |