Update video (#2512)

* Update video

support bilibili video

* Update video

drop the duplicated <div> wrapper

* Update video

update video
This commit is contained in:
sunete 2020-05-01 22:16:59 +08:00 committed by GitHub
parent 2147ee2b66
commit 9280de7075
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -9,5 +9,7 @@
<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>
{% 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>
{% endif %}
</div>