From 10b13d280694a5045beeaec2642b7d507bf0a9ea Mon Sep 17 00:00:00 2001 From: Chip Senkbeil Date: Tue, 29 Sep 2015 22:38:17 -0500 Subject: Fixed bad check for supported video types to display video element, added video example to example site --- exampleSite/content/customproject/video.md | 33 +++++++++++++++++++++++++++++ exampleSite/content/project/video.md | 33 +++++++++++++++++++++++++++++ exampleSite/static/vid/vid_352x288.3gp | Bin 0 -> 319965 bytes exampleSite/static/vid/vid_480x320.mp4 | Bin 0 -> 668017 bytes exampleSite/static/vid/vid_480x320.ogv | Bin 0 -> 366259 bytes exampleSite/static/vid/vid_480x320.webm | Bin 0 -> 293639 bytes layouts/partials/extra/video.html | 12 +++++------ layouts/partials/project/item.html | 2 +- 8 files changed, 73 insertions(+), 7 deletions(-) create mode 100644 exampleSite/content/customproject/video.md create mode 100644 exampleSite/content/project/video.md create mode 100644 exampleSite/static/vid/vid_352x288.3gp create mode 100644 exampleSite/static/vid/vid_480x320.mp4 create mode 100644 exampleSite/static/vid/vid_480x320.ogv create mode 100644 exampleSite/static/vid/vid_480x320.webm diff --git a/exampleSite/content/customproject/video.md b/exampleSite/content/customproject/video.md new file mode 100644 index 0000000..a636faa --- /dev/null +++ b/exampleSite/content/customproject/video.md @@ -0,0 +1,33 @@ ++++ +title = "Video" +weight = -1 +categories = [ "video" ] +tags = [ "such move", "very html5", "much animation", "wow" ] +video_mp4 = "/vid/vid_480x320.mp4" +video_webm = "/vid/vid_480x320.webm" +video_ogv = "/vid/vid_480x320.ogv" +video_3gp = "/vid/vid_352x288.3gp" +video_fallback = "/img/car.jpg" ++++ + +Videos can be provided via: + +``` +video_mp4 = "/vid/vid_480x320.mp4" +video_webm = "/vid/vid_480x320.webm" +video_ogv = "/vid/vid_480x320.ogv" +video_3gp = "/vid/vid_352x288.3gp" +video_fallback = "/img/car.jpg" +``` + +Each value is optional. If the fallback image is provided, it will be used +as both the poster of the video and the fallback if the browser does not +support HTML5 video. + +You can use the partial for a video via: + +``` +.Scratch.Set "class" "some extra CSS classes on video tag" +{{ partial "extra/video.html" . }} +``` + diff --git a/exampleSite/content/project/video.md b/exampleSite/content/project/video.md new file mode 100644 index 0000000..a636faa --- /dev/null +++ b/exampleSite/content/project/video.md @@ -0,0 +1,33 @@ ++++ +title = "Video" +weight = -1 +categories = [ "video" ] +tags = [ "such move", "very html5", "much animation", "wow" ] +video_mp4 = "/vid/vid_480x320.mp4" +video_webm = "/vid/vid_480x320.webm" +video_ogv = "/vid/vid_480x320.ogv" +video_3gp = "/vid/vid_352x288.3gp" +video_fallback = "/img/car.jpg" ++++ + +Videos can be provided via: + +``` +video_mp4 = "/vid/vid_480x320.mp4" +video_webm = "/vid/vid_480x320.webm" +video_ogv = "/vid/vid_480x320.ogv" +video_3gp = "/vid/vid_352x288.3gp" +video_fallback = "/img/car.jpg" +``` + +Each value is optional. If the fallback image is provided, it will be used +as both the poster of the video and the fallback if the browser does not +support HTML5 video. + +You can use the partial for a video via: + +``` +.Scratch.Set "class" "some extra CSS classes on video tag" +{{ partial "extra/video.html" . }} +``` + diff --git a/exampleSite/static/vid/vid_352x288.3gp b/exampleSite/static/vid/vid_352x288.3gp new file mode 100644 index 0000000..aa24ce8 Binary files /dev/null and b/exampleSite/static/vid/vid_352x288.3gp differ diff --git a/exampleSite/static/vid/vid_480x320.mp4 b/exampleSite/static/vid/vid_480x320.mp4 new file mode 100644 index 0000000..7084c3c Binary files /dev/null and b/exampleSite/static/vid/vid_480x320.mp4 differ diff --git a/exampleSite/static/vid/vid_480x320.ogv b/exampleSite/static/vid/vid_480x320.ogv new file mode 100644 index 0000000..9235e58 Binary files /dev/null and b/exampleSite/static/vid/vid_480x320.ogv differ diff --git a/exampleSite/static/vid/vid_480x320.webm b/exampleSite/static/vid/vid_480x320.webm new file mode 100644 index 0000000..82698d7 Binary files /dev/null and b/exampleSite/static/vid/vid_480x320.webm differ diff --git a/layouts/partials/extra/video.html b/layouts/partials/extra/video.html index 756851b..75629f2 100644 --- a/layouts/partials/extra/video.html +++ b/layouts/partials/extra/video.html @@ -1,17 +1,17 @@ -