mirror of https://github.com/Chocobozzz/PeerTube
parent
1ed2007190
commit
64f943c1cb
|
@ -286,8 +286,11 @@ export class Html5Hlsjs {
|
||||||
if (this.errorCounts[data.type]) this.errorCounts[data.type] += 1
|
if (this.errorCounts[data.type]) this.errorCounts[data.type] += 1
|
||||||
else this.errorCounts[data.type] = 1
|
else this.errorCounts[data.type] = 1
|
||||||
|
|
||||||
if (data.fatal) logger.error(error.message, { currentTime: this.player.currentTime(), data })
|
// Google Bot doesn't support our codecs, but we don't really care
|
||||||
else logger.warn(error.message)
|
if (!/googlebot/i.test(navigator.userAgent)) {
|
||||||
|
if (data.fatal) logger.error(error.message, { currentTime: this.player.currentTime(), data })
|
||||||
|
else logger.warn(error.message)
|
||||||
|
}
|
||||||
|
|
||||||
if (data.type === Hlsjs.ErrorTypes.NETWORK_ERROR) {
|
if (data.type === Hlsjs.ErrorTypes.NETWORK_ERROR) {
|
||||||
error.code = 2
|
error.code = 2
|
||||||
|
|
Loading…
Reference in New Issue