From 700830147494d79beaf992c8cfc273653c4ec4f2 Mon Sep 17 00:00:00 2001 From: Vlad Koshelev Date: Thu, 24 Dec 2015 18:37:31 +0300 Subject: [PATCH] Fix log messages in onError handler --- lib/videojs-hlsjs.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/videojs-hlsjs.js b/lib/videojs-hlsjs.js index fffdd2f..ea2f658 100644 --- a/lib/videojs-hlsjs.js +++ b/lib/videojs-hlsjs.js @@ -45,17 +45,17 @@ switch (data.type) { case Hls.ErrorTypes.NETWORK_ERROR: // try to recover network error - this.log('fatal network error encountered, try to recover'); + console.warn('fatal network error encountered, try to recover'); this.hls_.startLoad(); break; case Hls.ErrorTypes.MEDIA_ERROR: - this.log('fatal media error encountered, try to recover'); + console.warn('fatal media error encountered, try to recover'); this.hls_.recoverMediaError(); break; default: // cannot recover this.hls_.destroy(); - this.error(data); + console.error(data); break; } }