1
0
Fork 0
mirror of https://github.com/vbatts/imgsrv.git synced 2024-11-30 03:55:42 +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 .}} {{if .}}
<a href="/f/{{.Filename}}"> <a href="/f/{{.Filename}}">
<audio controls> <audio controls>
<source src="/f/{{.Filename}}" /> <source src="/f/{{.Filename}}" autoplay/>
Your browser does not support the video tag. Your browser does not support the video tag.
</audio> </audio>
</a> </a>
@ -221,7 +221,7 @@ var fileViewVideoTemplateHTML = `
{{if .}} {{if .}}
<a href="/f/{{.Filename}}"> <a href="/f/{{.Filename}}">
<video width="320" height="240" controls> <video width="320" height="240" controls>
<source src="/f/{{.Filename}}" /> <source src="/f/{{.Filename}}" autoplay/>
Your browser does not support the video tag. Your browser does not support the video tag.
</video> </video>
</a> </a>