Added a 'you don't have HTML5 so this video will not work' warning using just the...
authorKaren Rustad <karen.rustad@gmail.com>
Mon, 19 Dec 2011 06:50:36 +0000 (22:50 -0800)
committerElrond <elrond+mediagoblin.org@samba-tng.org>
Thu, 22 Dec 2011 23:26:00 +0000 (00:26 +0100)
mediagoblin/static/css/base.css
mediagoblin/templates/mediagoblin/media_displays/video.html

index 2a78006d2e1ffb64877a5fe8487b5ba1f3cf706c..625269a2d630adbf0dccde4567429d158acca772 100644 (file)
@@ -298,6 +298,14 @@ p.media_specs {
   color: #888;
 }
 
+.no_html5 {
+    background: black;
+    color: white;
+    text-align: center;
+    height: 160px;
+    padding: 130px 10px 20px 10px;
+}
+
 /* icons */
 
 img.media_icon {
index 5ef1a7824fb2eca47dabfb25139c0b4f3299eef5..d7046039dfc9f1b439d69886f771d42d72673ac1 100644 (file)
@@ -1,4 +1,5 @@
 {% extends 'mediagoblin/user_pages/media.html' %}
+
 {% block mediagoblin_media %}
   <div class="video-player" style="position: relative;">
     <video class="video-js vjs-default-skin"
       <source src="{{ request.app.public_store.file_url(
                   media['media_files']['webm_640']) }}" 
              type="video/webm; codecs=&quot;vp8, vorbis&quot;" />
+         <div class="no_html5">
+           Sorry, this video will not work because your web browser does not support HTML5 video.<br/>
+           You can get a modern web browser that can play this video at <a href="http://getfirefox.com">http://getfirefox.com</a>!
+         </div>
     </video>
   </div>
   {% if 'original' in media.media_files %}