added name for videos

This commit is contained in:
2021-09-06 19:15:58 +10:00
parent ae067b81ce
commit 35a096c79d

View File

@@ -122,10 +122,13 @@
{% if objs[current].type.name != "Image" %} {% if objs[current].type.name != "Image" %}
<script>$('#figure').attr('style', 'display:none')</script> <script>$('#figure').attr('style', 'display:none')</script>
{% endif %} {% endif %}
<div class="col col-auto">
<video id="video" class="col col-auto" controls> <video id="video" class="col col-auto" controls>
<source src="http://mara.ddp.net:5000/{{objs[current].FullPathOnFS()}}" type="video/mp4"> <source src="http://mara.ddp.net:5000/{{objs[current].FullPathOnFS()}}" type="video/mp4">
Your browser does not support the video tag. Your browser does not support the video tag.
</video> </video>
<figcaption class="figure-caption text-center text-wrap text-break"><span id="fname">{{objs[current].name}}</span></figcaption>
</div>
<script> <script>
window.addEventListener('resize', ResizeVideo, false); window.addEventListener('resize', ResizeVideo, false);
ResizeVideo() ResizeVideo()