diff options
author | Yves Fischer <yvesf-git@xapek.org> | 2015-12-31 00:06:05 +0100 |
---|---|---|
committer | Yves Fischer <yvesf-git@xapek.org> | 2016-01-08 20:38:18 +0100 |
commit | 48f917e478ed365e58f6880a90dd00be120fcc83 (patch) | |
tree | 1d8fce43de4f9ce0dbebd2de14e31dbb836f7e6a /mediabrowser/templates/watch.html | |
parent | 2a5bc9636647c1beeb58f3f0b3f2bcecb3509d16 (diff) | |
download | flask-mediabrowser-48f917e478ed365e58f6880a90dd00be120fcc83.tar.gz flask-mediabrowser-48f917e478ed365e58f6880a90dd00be120fcc83.zip |
update hls.js
Diffstat (limited to 'mediabrowser/templates/watch.html')
-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; } } |