diff options
author | Chip Senkbeil <chip.senkbeil@gmail.com> | 2015-09-29 21:42:03 +0300 |
---|---|---|
committer | Chip Senkbeil <chip.senkbeil@gmail.com> | 2015-09-29 21:42:03 +0300 |
commit | b31a09d036882b5ae95c2d1ace8bef50bb146e27 (patch) | |
tree | c7af1c0b5915a6dcba9c63a3f5f9570ebeac2b75 | |
parent | f23ad1c3066d439a7d563e35b6d9cc69260cee1e (diff) |
Updated video partial to include type information and support webm and 3gp
-rw-r--r-- | layouts/partials/extra/video.html | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/layouts/partials/extra/video.html b/layouts/partials/extra/video.html index 14b912e..756851b 100644 --- a/layouts/partials/extra/video.html +++ b/layouts/partials/extra/video.html @@ -1,9 +1,15 @@ <video preload="auto" autoplay loop muted {{ with .Params.video_preview_fallback }}poster="{{ . }}"{{ end }} class="{{ .Scratch.Get "class" }}"> - {{ with .Params.video_preview_mp4 }} - <source type="video/mp4" src="{{ . }}"> + {{ with .Params.video_preview_webm }} + <source src="{{ . }}" type='video/webm; codecs="vp8.0, vorbis"'> {{ end }} {{ with .Params.video_preview_ogv }} - <source type="video/mp4" src="{{ . }}"> + <source src="{{ . }}" type='video/ogg; codecs="theora, vorbis"'> + {{ end }} + {{ with .Params.video_preview_mp4 }} + <source src="{{ . }}" type='video/mp4; codecs="avc1.4D401E, mp4a.40.2"'> + {{ end }} + {{ with .Params.video_preview_3gp }} + <source src="{{ . }}" type='video/3gp'> {{ end }} {{ with .Params.video_preview_fallback }} <img src="{{ . }}"> |