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

Open
RichardJECooke opened this Issue Sep 24, 2018 · 4 comments

Comments

2 participants
@RichardJECooke

RichardJECooke commented Sep 24, 2018

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

This comment has been minimized.

Show comment
Hide comment
@tcrowe

tcrowe Sep 24, 2018

Contributor

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

Contributor

tcrowe commented Sep 24, 2018

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

@RichardJECooke

This comment has been minimized.

Show comment
Hide comment
@RichardJECooke

RichardJECooke 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

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

This comment has been minimized.

Show comment
Hide comment
@tcrowe

tcrowe Sep 25, 2018

Contributor

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

Contributor

tcrowe commented Sep 25, 2018

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

@RichardJECooke

This comment has been minimized.

Show comment
Hide comment
@RichardJECooke

RichardJECooke Sep 25, 2018

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).

RichardJECooke commented Sep 25, 2018

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).

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