Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: Allow {% youtube %} tag to load a playlist #3267

Closed
RichardJECooke opened this issue Sep 24, 2018 · 5 comments
Closed

Feature request: Allow {% youtube %} tag to load a playlist #3267

RichardJECooke opened this issue Sep 24, 2018 · 5 comments

Comments

@RichardJECooke
Copy link

For feature request

It would be great to allow youtube playlists as well as just embedding single videos. Example use case: I have a whole lot of music video representing a portfolio that I would like people to be able to click 'next' through, rather than scrolling down my page and loading and playing each video individually.

@tcrowe
Copy link
Contributor

tcrowe commented Sep 24, 2018

Hey @RichardJECooke 👋 It sounds like a good idea for a plugin.

@RichardJECooke
Copy link
Author

RichardJECooke commented Sep 25, 2018

This is actually already possible if you use AsciiDoc (.adoc) rather than Markdown (.md) for posts and pages. AsciiDoc is a MUCH better markup language all round, and it supports things out of the box the Hexo provides plugins for unnecessarily.

In an .adoc post you can just say:

video::155635261[vimeo, width=700, height=400, theme=dark]

or

video::X-prfGOo_wA[youtube, list=PLAzBJ4GymH-ynRtLdbbOFYl3eKkm-c5AK]

Here's a guide on how to use video in AsciiDoc: https://asciidoctor.org/docs/user-manual/#youtube-and-vimeo-videos

@tcrowe
Copy link
Contributor

tcrowe commented Sep 25, 2018

Do you think this plugin will help with that? https://github.com/hcoona/hexo-renderer-asciidoc

@RichardJECooke
Copy link
Author

Yup, that's the one I linked in my comment. It works great. I'm switching to it from now on for all my articles (it also does stuff like bibliography entries, numbered outline headings, table of contents, and the format also allows you to export to PDF or Word later if you want to).

@SukkaW
Copy link
Member

SukkaW commented Feb 21, 2020

From Google Document I could see it is possible to use <iframe> to load YouTube playlist.

https://support.google.com/youtube/answer/171780?hl=en

I might add support for this.


Update:

@RichardJECooke

YouTube could embed playlist with url format like this: https://www.youtube.com/embed/videoseries?list=PLx0sYbCqOb8TBPRdmBHs5Iftvv9TPboYG

So you can try use videoseries?list=PLx0sYbCqOb8TBPRdmBHs5Iftvv9TPboYG as video id in {%.youtube %} tag.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants