aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/templates
diff options
context:
space:
mode:
authorSebastian Spaeth <Sebastian@SSpaeth.de>2012-12-25 19:18:23 +0100
committerSebastian Spaeth <Sebastian@SSpaeth.de>2012-12-25 19:18:23 +0100
commit89672855f199b2bc08126e09b4fba2579940a67e (patch)
treec700bad69b1ba31f2ad7976b55602d972d3002e7 /mediagoblin/templates
parent0562898e116ffcc8ce6f811c7c05ff77035bfa96 (diff)
parent565d01a09a58bb1f60b6562e949ea322f6e01cc0 (diff)
downloadmediagoblin-89672855f199b2bc08126e09b4fba2579940a67e.tar.lz
mediagoblin-89672855f199b2bc08126e09b4fba2579940a67e.tar.xz
mediagoblin-89672855f199b2bc08126e09b4fba2579940a67e.zip
Merge branch '512_bump_video_js'
Diffstat (limited to 'mediagoblin/templates')
-rw-r--r--mediagoblin/templates/mediagoblin/media_displays/video.html46
1 files changed, 21 insertions, 25 deletions
diff --git a/mediagoblin/templates/mediagoblin/media_displays/video.html b/mediagoblin/templates/mediagoblin/media_displays/video.html
index d72de2ca..7d5ede8d 100644
--- a/mediagoblin/templates/mediagoblin/media_displays/video.html
+++ b/mediagoblin/templates/mediagoblin/media_displays/video.html
@@ -18,34 +18,30 @@
{% extends 'mediagoblin/user_pages/media.html' %}
-{% block mediagoblin_head %}
+{% block mediagoblin_head -%}
{{ super() }}
- <script type="text/javascript"
- src="{{ request.staticdirect('/js/extlib/video-js/video.js') }}"></script>
- <link href="{{ request.staticdirect('/css/vjs-mg-skin.css') }}" rel="stylesheet">
-{% endblock %}
+ <script type="text/javascript" src="{{
+ request.staticdirect('/extlib/video-js/video.min.js') }}"></script>
+ <link href="{{ request.staticdirect('/css/vjs-mg-skin.css')
+ }}" rel="stylesheet">
+{%- endblock %}
{% block mediagoblin_media %}
- <div class="video-player" style="position: relative;">
- <video class="video-js vjs-mg-skin"
- width="{{ media.media_data.width }}"
- height="{{ media.media_data.height }}"
- controls="controls"
- preload="metadata"
- data-setup="">
- <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">
- {%- trans -%}Sorry, this video will not work because
- your web browser does not support HTML5
- video.{%- endtrans -%}<br/>
- {%- trans -%}You can get a modern web browser that
- can play this video at <a href="http://getfirefox.com">
- http://getfirefox.com</a>!{%- endtrans -%}
- </div>
- </video>
- </div>
+ <video controls autoplay preload="auto" class="video-js vjs-mg-skin"
+ data-setup='{"height": {{ media.media_data.height }},
+ "width": {{ media.media_data.width }} }'>
+ <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">
+ {%- trans -%}Sorry, this video will not work because
+ your web browser does not support HTML5
+ video.{%- endtrans -%}<br/>
+ {%- trans -%}You can get a modern web browser that
+ can play this video at <a href="http://getfirefox.com">
+ http://getfirefox.com</a>!{%- endtrans -%}
+ </div>
+ </video>
{% endblock %}
{% block mediagoblin_sidebar %}