Merge remote-tracking branch 'refs/remotes/pythonsnake/629_autoplay'

This commit is contained in:
Christopher Allan Webber 2013-02-24 13:06:53 -06:00
commit a587492729
2 changed files with 6 additions and 1 deletions

View File

@ -100,6 +100,9 @@ vp8_quality = integer(default=8)
# Range: -0.1..1
vorbis_quality = float(default=0.3)
# Autoplay the video when page is loaded?
auto_play = boolean(default=True)
[media_type:mediagoblin.media_types.audio]
keep_original = boolean(default=True)

View File

@ -27,7 +27,9 @@
{%- endblock %}
{% block mediagoblin_media %}
<video controls autoplay preload="auto" class="video-js vjs-mg-skin"
<video controls
{% if global_config['media_type:mediagoblin.media_types.video']['auto_play'] %}autoplay{% endif %}
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(