From 478b2feb875e4ef5a458531c0d24f0b2117f5490 Mon Sep 17 00:00:00 2001 From: Yves Fischer Date: Sat, 2 Jan 2016 15:05:53 +0100 Subject: better thumbs, better caching (with filesystem) --- mediabrowser/templates/listdir.html | 42 ++++++++----------------------------- mediabrowser/templates/watch.html | 4 +++- 2 files changed, 12 insertions(+), 34 deletions(-) (limited to 'mediabrowser/templates') diff --git a/mediabrowser/templates/listdir.html b/mediabrowser/templates/listdir.html index cfa46f7..024822d 100644 --- a/mediabrowser/templates/listdir.html +++ b/mediabrowser/templates/listdir.html @@ -3,37 +3,13 @@ Directory Browser - {{ path }} - - {% if parent != path %} + {% if path != '.' %}
+ -
- - .. -
+ Parent Directory
{% endif %} @@ -41,8 +17,10 @@ {% for file in files %} {% if file['type'] == 'file' %}
- + {{ file['filename'] }} @@ -51,11 +29,9 @@ {% if file['type'] == 'directory' %}
+ -
- - {{ file['filename'] }} -
+ {{ file['filename'] }}
{% endif %} 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) { -- cgit v1.2.1