fix video source path

This commit is contained in:
odysseusmax 2020-08-13 07:52:28 +00:00
parent e30926e36c
commit 359a991984
1 changed files with 1 additions and 1 deletions

View File

@ -12,7 +12,7 @@
<img class="mx-auto w-2/3 md:w-3/5 lg:w-2/5 rounded" src="../{{id}}/thumbnail" alt="{{name}}"> <img class="mx-auto w-2/3 md:w-3/5 lg:w-2/5 rounded" src="../{{id}}/thumbnail" alt="{{name}}">
{% elif media.video %} {% elif media.video %}
<video id="my-video-player" class="mx-auto rounded" controls poster="../{{id}}/thumbnail"> <video id="my-video-player" class="mx-auto rounded" controls poster="../{{id}}/thumbnail">
<source src="/{{id}}/download" type="{{ media.type }}" /> <source src="../{{id}}/download" type="{{ media.type }}" />
</video> </video>
{% elif media.audio %} {% elif media.audio %}
<audio class="mx-auto" controls autoplay muted src="../{{id}}/download" type="{{ media.type }}"></audio> <audio class="mx-auto" controls autoplay muted src="../{{id}}/download" type="{{ media.type }}"></audio>