diff options
author | Yves Fischer <yvesf-git@xapek.org> | 2016-01-02 15:05:53 +0100 |
---|---|---|
committer | Yves Fischer <yvesf-git@xapek.org> | 2016-01-08 20:38:18 +0100 |
commit | 478b2feb875e4ef5a458531c0d24f0b2117f5490 (patch) | |
tree | 799ff53e65e3992424e190ee4201500a8862eb71 /mediabrowser/templates/watch.html | |
parent | d63cdea1618f3e493a966ce43fb735b0afc098b6 (diff) | |
download | flask-mediabrowser-478b2feb875e4ef5a458531c0d24f0b2117f5490.tar.gz flask-mediabrowser-478b2feb875e4ef5a458531c0d24f0b2117f5490.zip |
better thumbs, better caching (with filesystem)
Diffstat (limited to 'mediabrowser/templates/watch.html')
-rw-r--r-- | mediabrowser/templates/watch.html | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/mediabrowser/templates/watch.html b/mediabrowser/templates/watch.html index 555c0e9..7e3c9fd 100644 --- a/mediabrowser/templates/watch.html +++ b/mediabrowser/templates/watch.html @@ -60,7 +60,7 @@ var config = { debug: logger, maxBufferLength: 500, - manifestLoadingTimeOut: 120000, + manifestLoadingTimeOut: 20000, levelLoadingTimeOut: 20000, fragLoadingTimeOut: 50000 }; @@ -69,6 +69,8 @@ hls.attachMedia(video); hls.on(Hls.Events.MANIFEST_PARSED, function (event, data) { video.play(); + video.setAttribute('poster', + "{{ url_for('mediabrowser.poster', path=path) }}"); }); hls.on(Hls.Events.ERROR, function (event, data) { if (data.fatal) { |