From 0830afbca9c2625936c4045788490128e693a78d Mon Sep 17 00:00:00 2001 From: Parth Buch Date: Tue, 17 Jul 2012 14:22:06 +0530 Subject: Posters applied to module videos as well --- stapp/templates/video/home.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'stapp/templates/video/home.html') diff --git a/stapp/templates/video/home.html b/stapp/templates/video/home.html index 9a55eb0..427fedd 100644 --- a/stapp/templates/video/home.html +++ b/stapp/templates/video/home.html @@ -19,8 +19,8 @@ <div span="12"> <h2>{{module.name}}</h2> {% for video in module.video_list.all %} - <video width="150" height="150" controls="controls"> - <source src="{{video.filename.url}}" poster="{{video.thumbnail.url}}"> + <video width="150" height="150" controls="controls" poster="{{video.thumbnail.url}}"> + <source src="{{video.filename.url}}" > </video> {{video.name}} {% endfor %} -- cgit From 156b9a477390d4419c4c195504b2abb7c84c5053 Mon Sep 17 00:00:00 2001 From: Parth Buch Date: Tue, 17 Jul 2012 14:32:24 +0530 Subject: Not preloadind the video, getting the full image for the mail video poster --- stapp/templates/video/home.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'stapp/templates/video/home.html') diff --git a/stapp/templates/video/home.html b/stapp/templates/video/home.html index 427fedd..2bb26ef 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" poster="{{play.thumbnail.url}}"> + <video width="700" height="400" controls="controls" id="mainvideo" poster="{{play.image.url}}" preload="metadata"> <source src="{{play.filename.url}}"> </video> <div id="footnote"></div> @@ -19,7 +19,7 @@ <div span="12"> <h2>{{module.name}}</h2> {% for video in module.video_list.all %} - <video width="150" height="150" controls="controls" poster="{{video.thumbnail.url}}"> + <video width="150" height="150" controls="controls" poster="{{video.thumbnail.url}}" preload="metadata"> <source src="{{video.filename.url}}" > </video> {{video.name}} -- cgit