Add Google Drive as video provider (#1967)

This commit is contained in:
Lars Olesen 2018-11-26 02:40:54 +01:00 committed by Michael Rose
parent 31828d3174
commit 8a03ffb439

View file

@ -7,5 +7,7 @@
<iframe src="https://player.vimeo.com/video/{{ video_id }}?dnt=true" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>
{% elsif video_provider == "youtube" %}
<iframe src="https://www.youtube-nocookie.com/embed/{{ video_id }}" frameborder="0" allowfullscreen></iframe>
{% elsif video_provider == "google-drive" %}
<iframe src="https://drive.google.com/file/d/{{ video_id }}/preview" frameborder="0" allowfullscreen></iframe>
{% endif %}
</div>