fixed BUG-54/55, viewer now works in PROD, current_file being set in run_ai_on job, added "new" bug-53 re video fname not being set properly when next/prev in viewer

This commit is contained in:
2021-09-14 17:56:06 +10:00
parent 14950e2f02
commit 301b3d220b
5 changed files with 10 additions and 19 deletions

View File

@@ -29,8 +29,8 @@
{% for id in objs %}
e=new Object()
e.name = "{{objs[id].name}}"
e.url = "{{objs[id].FullPathOnFS()}}"
e.name = "{{objs[id].name|safe}}"
e.url = "{{objs[id].FullPathOnFS()|safe}}"
e.type = "{{objs[id].type.name}}"
{% if objs[id].file_details.faces %}
e.face_model="{{objs[id].file_details.faces[0].facefile_lnk.model_used}}"
@@ -113,7 +113,7 @@
<script>
var im=new Image();
im.onload=DrawImg
im.src="http://mara.ddp.net:5000/" + objs[current].url
im.src="../" + objs[current].url
var context = canvas.getContext('2d')
window.addEventListener('resize', DrawImg, false);
</script>
@@ -124,7 +124,7 @@
{% endif %}
<div class="col col-auto">
<video id="video" class="col col-auto" controls>
<source src="http://mara.ddp.net:5000/{{objs[current].FullPathOnFS()}}" type="video/mp4">
<source src="../{{objs[current].FullPathOnFS()}}" type="video/mp4">
Your browser does not support the video tag.
</video>
<figcaption id="vid-caption" class="figure-caption text-center text-wrap text-break"><span id="fname">{{objs[current].name}}</span></figcaption>