From 067ec627ec48adf922f96f5266b46372f55e0641 Mon Sep 17 00:00:00 2001
From: Karen Rustad <karen.rustad@gmail.com>
Date: Sun, 18 Dec 2011 22:50:36 -0800
Subject: [PATCH] Added a 'you don't have HTML5 so this video will not work'
warning using just the inherent properties of the <video>
tag (and some css for style)
---
mediagoblin/static/css/base.css | 8 ++++++++
.../mediagoblin/media_displays/video.html | 5 +++++
2 files changed, 13 insertions(+), 0 deletions(-)
diff --git a/mediagoblin/static/css/base.css b/mediagoblin/static/css/base.css
index 2a78006..625269a 100644
|
a
|
b
|
p.media_specs {
|
| 298 | 298 | color: #888; |
| 299 | 299 | } |
| 300 | 300 | |
| | 301 | .no_html5 { |
| | 302 | background: black; |
| | 303 | color: white; |
| | 304 | text-align: center; |
| | 305 | height: 160px; |
| | 306 | padding: 130px 10px 20px 10px; |
| | 307 | } |
| | 308 | |
| 301 | 309 | /* icons */ |
| 302 | 310 | |
| 303 | 311 | img.media_icon { |
diff --git a/mediagoblin/templates/mediagoblin/media_displays/video.html b/mediagoblin/templates/mediagoblin/media_displays/video.html
index 5ef1a78..d704603 100644
|
a
|
b
|
|
| 1 | 1 | {% extends 'mediagoblin/user_pages/media.html' %} |
| | 2 | |
| 2 | 3 | {% block mediagoblin_media %} |
| 3 | 4 | <div class="video-player" style="position: relative;"> |
| 4 | 5 | <video class="video-js vjs-default-skin" |
| … |
… |
|
| 10 | 11 | <source src="{{ request.app.public_store.file_url( |
| 11 | 12 | media['media_files']['webm_640']) }}" |
| 12 | 13 | type="video/webm; codecs="vp8, vorbis"" /> |
| | 14 | <div class="no_html5"> |
| | 15 | Sorry, this video will not work because your web browser does not support HTML5 video.<br/> |
| | 16 | You can get a modern web browser that can play this video at <a href="http://getfirefox.com">http://getfirefox.com</a>! |
| | 17 | </div> |
| 13 | 18 | </video> |
| 14 | 19 | </div> |
| 15 | 20 | {% if 'original' in media.media_files %} |