support for video and improvements

This commit is contained in:
Henrique Dias
2016-10-22 13:46:10 +01:00
parent 3430488b58
commit d96bbff550
4 changed files with 36 additions and 17 deletions

View File

@@ -6,7 +6,11 @@
{{ else if eq .Type "audio" }}
<audio src="{{ .URL }}?raw=true"></audio>
{{ else if eq .Type "video" }}
<!-- TODO: SHOW VIDEO ? -->
<video src="{{ .URL }}?raw=true" controls>
Sorry, your browser doesn't support embedded videos,
but don't worry, you can <a href="?download=true">download it</a>
and watch it with your favorite video player!
</video>
{{ else if eq .Type "blob" }}
<a href="?download=true">Download</a>
{{ else}}