Skip to content

Commit

Permalink
Add Google Drive as video provider (mmistakes#1967)
Browse files Browse the repository at this point in the history
  • Loading branch information
lsolesen authored and mmistakes committed Nov 26, 2018
1 parent bc9b351 commit 84659f1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions _includes/video
Original file line number Diff line number Diff line change
Expand Up @@ -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>

0 comments on commit 84659f1

Please sign in to comment.