diff options
Diffstat (limited to 'mediabrowser/templates')
-rw-r--r-- | mediabrowser/templates/watch.html | 12 |
1 files changed, 4 insertions, 8 deletions
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 @@ <html> <head> <title>Watch - {{ filename }}</title> - <script src="{{url_for('mediabrowser.assets', filename='hls.js')}}"></script> + <script src="{{url_for('mediabrowser.assets', filename='hls.min.js')}}"></script> <link rel="stylesheet" href="{{ url_for('mediabrowser.assets', filename='style.css') }}"/> </head> <body class="watch"> @@ -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; } } |