-
Notifications
You must be signed in to change notification settings - Fork 25.6k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Update video #2512
Update video #2512
Conversation
support bilibili video
_includes/video
Outdated
@@ -9,5 +9,9 @@ | |||
<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" %} | |||
<div class="responsive-video-container"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's already a <div class="responsive-video-container">
surrounding the whole if
statement. Might be better to drop this duplicated <div>
wrapper,
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes. You're right. I have deleted the duplicated <div>
wrapper.
drop the duplicated <div> wrapper
_includes/video
Outdated
@@ -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="//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> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Another suggestion: Add https:
before the URL so it stays in line with other items in the same list.
- <iframe src="//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>
+ <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>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
😄Done.
update video
* Update video support bilibili video * Update video drop the duplicated <div> wrapper * Update video update video
* Update video support bilibili video * Update video drop the duplicated <div> wrapper * Update video update video
* Update video support bilibili video * Update video drop the duplicated <div> wrapper * Update video update video
* Update video support bilibili video * Update video drop the duplicated <div> wrapper * Update video update video
support insert bilibili video
This is an enhancement or feature.
Summary
Support insert bilibili video in the posts.
How to insert bilibili video?
Replace
videoID
with the bvid of the video you want to post.