2017-01-24 15:29:34 +01:00
|
|
|
{% capture video_id %}{{ include.id }}{% endcapture %}
|
|
|
|
{% capture video_provider %}{{ include.provider }}{% endcapture %}
|
|
|
|
|
|
|
|
<!-- Courtesy of embedresponsively.com //-->
|
|
|
|
<div class="responsive-video-container">
|
|
|
|
{% if video_provider == "vimeo" %}
|
2018-11-21 20:06:26 +01:00
|
|
|
<iframe src="https://player.vimeo.com/video/{{ video_id }}?dnt=true" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>
|
2017-01-24 15:29:34 +01:00
|
|
|
{% elsif video_provider == "youtube" %}
|
2018-11-21 20:06:26 +01:00
|
|
|
<iframe src="https://www.youtube-nocookie.com/embed/{{ video_id }}" frameborder="0" allowfullscreen></iframe>
|
2018-11-26 02:40:54 +01:00
|
|
|
{% elsif video_provider == "google-drive" %}
|
|
|
|
<iframe src="https://drive.google.com/file/d/{{ video_id }}/preview" frameborder="0" allowfullscreen></iframe>
|
2020-05-01 16:16:59 +02:00
|
|
|
{% elsif video_provider == "bilibili" %}
|
|
|
|
<iframe src="https://player.bilibili.com/player.html?bvid={{ video_id }}&page=1&as_wide=1&high_quality=1&danmaku=0" scrolling="no" border="0" frameborder="no" framespacing="0" allowfullscreen="true"></iframe>
|
2017-01-24 15:29:34 +01:00
|
|
|
{% endif %}
|
|
|
|
</div>
|