mirror of
https://github.com/vbatts/imgsrv.git
synced 2024-11-27 02:25:41 +00:00
layouts: autoplay music and video
pure evil Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
This commit is contained in:
parent
23ead5239c
commit
e06074e25a
1 changed files with 2 additions and 2 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue