From 48f917e478ed365e58f6880a90dd00be120fcc83 Mon Sep 17 00:00:00 2001 From: Yves Fischer Date: Thu, 31 Dec 2015 00:06:05 +0100 Subject: update hls.js --- mediabrowser/templates/watch.html | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'mediabrowser/templates') diff --git a/mediabrowser/templates/watch.html b/mediabrowser/templates/watch.html index 456a188..555c0e9 100644 --- a/mediabrowser/templates/watch.html +++ b/mediabrowser/templates/watch.html @@ -2,7 +2,7 @@ Watch - {{ filename }} - + @@ -74,19 +74,15 @@ if (data.fatal) { switch (data.type) { case Hls.ErrorTypes.NETWORK_ERROR: - // try to recover network error - console.log("fatal network error encountered, try to recover"); - hls.startLoad(); + logger.log("fatal network error encountered"); break; case Hls.ErrorTypes.MEDIA_ERROR: - console.log("fatal media error encountered, try to recover"); - hls.recoverMediaError(); + logger.log("fatal media error encountered"); break; default: // cannot recover hls.destroy(); - console.log([event, data]); - alert(event); + logger.log([event, data]); break; } } -- cgit v1.2.1