diff options
author | Parth Buch | 2012-06-22 19:14:49 +0530 |
---|---|---|
committer | Parth Buch | 2012-06-22 19:14:49 +0530 |
commit | cc4f9c1254d0358f6a872be8d41d52587640a921 (patch) | |
tree | 553fa63f207fe491c672ca8bc4c89d0e4efb8ddf /stapp/templates | |
parent | 1a88222e5fd611185c5283c5799e6cb3463628fd (diff) | |
download | stproject-cc4f9c1254d0358f6a872be8d41d52587640a921.tar.gz stproject-cc4f9c1254d0358f6a872be8d41d52587640a921.tar.bz2 stproject-cc4f9c1254d0358f6a872be8d41d52587640a921.zip |
Added an image and thumbnail field which is to be loaded in HTML5 poster. The 100x100 thumbnails are automatically generated from the image field.
Diffstat (limited to 'stapp/templates')
-rw-r--r-- | stapp/templates/video/home.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/stapp/templates/video/home.html b/stapp/templates/video/home.html index ba84628..9a55eb0 100644 --- a/stapp/templates/video/home.html +++ b/stapp/templates/video/home.html @@ -8,7 +8,7 @@ <div class="hero-unit"> <h3>Latest Video</h3> - <video width="700" height="400" controls="controls" id="mainvideo"> + <video width="700" height="400" controls="controls" id="mainvideo" poster="{{play.thumbnail.url}}"> <source src="{{play.filename.url}}"> </video> <div id="footnote"></div> @@ -20,7 +20,7 @@ <h2>{{module.name}}</h2> {% for video in module.video_list.all %} <video width="150" height="150" controls="controls"> - <source src="{{video.filename.url}}"> + <source src="{{video.filename.url}}" poster="{{video.thumbnail.url}}"> </video> {{video.name}} {% endfor %} |