Merge remote-tracking branch 'refs/remotes/pythonsnake/629_autoplay'
This commit is contained in:
commit
a587492729
@ -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)
|
||||
|
@ -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(
|
||||
|
Loading…
x
Reference in New Issue
Block a user