1
0
Fork 0
mirror of https://github.com/vbatts/imgsrv.git synced 2024-12-28 08:36:29 +00:00

layouts: autoplay music and video

pure evil

Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
This commit is contained in:
Vincent Batts 2017-08-08 16:24:05 -04:00
parent 23ead5239c
commit e06074e25a
Signed by: vbatts
GPG key ID: 10937E57733F1362

View file

@ -209,7 +209,7 @@ var fileViewAudioTemplateHTML = `
{{if .}}
<a href="/f/{{.Filename}}">
<audio controls>
<source src="/f/{{.Filename}}" />
<source src="/f/{{.Filename}}" autoplay/>
Your browser does not support the video tag.
</audio>
</a>
@ -221,7 +221,7 @@ var fileViewVideoTemplateHTML = `
{{if .}}
<a href="/f/{{.Filename}}">
<video width="320" height="240" controls>
<source src="/f/{{.Filename}}" />
<source src="/f/{{.Filename}}" autoplay/>
Your browser does not support the video tag.
</video>
</a>