blob: 75629f2407816aeefa75f09bfaeb39955da81485 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
<video preload="auto" autoplay loop muted {{ with .Params.video_fallback }}poster="{{ . }}"{{ end }} class="{{ .Scratch.Get "class" }}">
{{ with .Params.video_webm }}
<source src="{{ . }}" type='video/webm; codecs="vp8.0, vorbis"'>
{{ end }}
{{ with .Params.video_ogv }}
<source src="{{ . }}" type='video/ogg; codecs="theora, vorbis"'>
{{ end }}
{{ with .Params.video_mp4 }}
<source src="{{ . }}" type='video/mp4; codecs="avc1.4D401E, mp4a.40.2"'>
{{ end }}
{{ with .Params.video_3gp }}
<source src="{{ . }}" type='video/3gp'>
{{ end }}
{{ with .Params.video_fallback }}
<img src="{{ . }}">
{{ end }}
</video>
|