removing the ugly thumbnail behind the video

This commit is contained in:
Christophe-Marie Duquesne
2013-07-17 03:11:49 +02:00
parent 0b5e38b17c
commit 6df0f58a88
3 changed files with 4 additions and 2 deletions

View File

@@ -232,7 +232,7 @@ class Gallery(object):
if f in imglist:
outname = join(outpath, filename)
else:
outname = ''.join([os.path.splitext(filename)[0], '.webm'])
outname = os.path.splitext(filename)[0] + '.webm'
if os.path.isfile(outname) and not self.force:
self.logger.info("%s exists - skipping", filename)

Binary file not shown.

After

Width:  |  Height:  |  Size: 151 B

View File

@@ -67,8 +67,10 @@
</a>
{% endfor %}
{% for video in videos %}
<a href="{{ theme.url }}/img/empty.png">
<img src="{{ video.thumb }}" alt="{{ video.file }}"
data-layer="<video style='position:inherit'; top:50%; left:50%;margin-top:-150px;margin-left:-200px' controls> <source src={{ video.file }} type='video/webm' /></video>" />
data-layer="<video controls> <source src={{ video.file }} type='video/webm' /></video>" />
</a>
{% endfor %}
</div>
{% endif %}